diff --git a/.streamlit/secrets.toml b/.streamlit/secrets.toml index 1a98324..a658410 100644 --- a/.streamlit/secrets.toml +++ b/.streamlit/secrets.toml @@ -1,5 +1,4 @@ COMFYFLOW_API_URL="https://api.comfyflow.app" -DISCORD_CLIENT_ID="1163088920305737728" [connections.comfyflow_db] url = "sqlite:///comfyflow.db" \ No newline at end of file diff --git a/Home.py b/Home.py index 181e468..be83bb0 100644 --- a/Home.py +++ b/Home.py @@ -31,15 +31,15 @@ def back_home_signup(): auth_instance = MyAuthenticate("comfyflow_token", "ComfyFlowApp: Load ComfyUI workflow as webapp in seconds.") if not st.session_state['authentication_status']: - with header_button: - client_id = os.getenv('DISCORD_CLIENT_ID') - redirect_uri = os.getenv('DISCORD_REDIRECT_URI') - signup_url = f"https://discord.com/oauth2/authorize?client_id={client_id}&scope=identify+email&redirect_uri={redirect_uri}&response_type=code" - st.link_button("Sign Up", type="primary", url=signup_url, help="Sign up with Discord") + # with header_button: + # client_id = os.getenv('DISCORD_CLIENT_ID') + # redirect_uri = os.getenv('DISCORD_REDIRECT_URI') + # signup_url = f"https://discord.com/oauth2/authorize?client_id={client_id}&scope=identify+email&redirect_uri={redirect_uri}&response_type=code" + # st.link_button("Sign Up", type="primary", url=signup_url, help="Sign up with Discord") with st.container(): try: - st.markdown("ComfyFlowApp offers an in-built test account(username: demo) with the credentials(password: comfyflowapp). For an enhanced user experience, please sign up your account at https://comfyflow.app.") + st.markdown("ComfyFlowApp offers an in-built test account(username: demo) with the credentials(password: comfyflowapp).") auth_instance.login("Login to ComfyFlowApp") except Exception as e: st.error(f"Login failed, {e}") diff --git a/bin/creator_daemon.sh b/bin/creator_daemon.sh index c3c87d3..8e703af 100644 --- a/bin/creator_daemon.sh +++ b/bin/creator_daemon.sh @@ -14,8 +14,6 @@ export STREAMLIT_SERVER_PORT=8501 export COMFYFLOW_API_URL=https://api.comfyflow.app # set COMFYUI_SERVER_ADDR to comfyui server addr export COMFYUI_SERVER_ADDR=http://localhost:8188 -# set discord callback url -export DISCORD_REDIRECT_URI=https://comfyflow.app # set MODE to Creator export MODE=Creator diff --git a/bin/creator_run.bat b/bin/creator_run.bat index 5f94b32..460a91a 100644 --- a/bin/creator_run.bat +++ b/bin/creator_run.bat @@ -14,8 +14,6 @@ set STREAMLIT_SERVER_PORT=8501 set COMFYFLOW_API_URL=https://api.comfyflow.app :: set COMFYUI_SERVER_ADDR to localhost:8188 set COMFYUI_SERVER_ADDR=http://localhost:8188 -:: set discord callback url -set DISCORD_REDIRECT_URI=https://comfyflow.app :: set MODE set MODE=Creator diff --git a/bin/creator_run.sh b/bin/creator_run.sh index a178acc..6f45387 100644 --- a/bin/creator_run.sh +++ b/bin/creator_run.sh @@ -14,8 +14,6 @@ export STREAMLIT_SERVER_PORT=8501 export COMFYFLOW_API_URL=https://api.comfyflow.app # set COMFYUI_SERVER_ADDR to comfyui server addr export COMFYUI_SERVER_ADDR=http://localhost:8188 -# set discord callback url -export DISCORD_REDIRECT_URI=https://comfyflow.app # set MODE to Creator export MODE=Creator diff --git a/docs/images/how-to-use-it.png b/docs/images/how-to-use-it.png index 34ac805..cee7b5b 100644 Binary files a/docs/images/how-to-use-it.png and b/docs/images/how-to-use-it.png differ diff --git "a/pages/3_\360\237\223\232_Workspace.py" "b/pages/3_\360\237\223\232_Workspace.py" index 8b5db21..b7f1d44 100644 --- "a/pages/3_\360\237\223\232_Workspace.py" +++ "b/pages/3_\360\237\223\232_Workspace.py" @@ -159,7 +159,7 @@ def create_operation_ui(app): if st.session_state.get('username', 'anonymous') == app.username: disabled = False - operate_row = row([1.2, 1.0, 1.1, 1.1, 3.3, 1.1, 1.2], vertical_align="bottom") + operate_row = row([1.2, 1.0, 1.1, 1.1, 4.5, 1.1], vertical_align="bottom") preview_button = operate_row.button("✅ Preview", help="Preview and check the app", key=f"{id}-button-preview", on_click=click_preview_app, args=(app,), disabled=disabled) @@ -228,15 +228,16 @@ def create_operation_ui(app): operate_row.button("❌ Delete", help="Delete the app", key=f"{id}-button-delete", on_click=click_delete_app, args=(name,), disabled=disabled) - publish_button = operate_row.button("✈️ Publish", help="Publish the app with template", - key=f"{id}-button-publish", - on_click=click_publish_app, args=(app,), disabled=disabled) - if publish_button: - if status == AppStatus.CREATED.value: - st.warning(f"Please preview the app {name} first") - else: - if 'token_cookie' not in st.session_state: - st.warning("Please go to homepage for your login :point_left:") + + # publish_button = operate_row.button("✈️ Publish", help="Publish the app with template", + # key=f"{id}-button-publish", + # on_click=click_publish_app, args=(app,), disabled=disabled) + # if publish_button: + # if status == AppStatus.CREATED.value: + # st.warning(f"Please preview the app {name} first") + # else: + # if 'token_cookie' not in st.session_state: + # st.warning("Please go to homepage for your login :point_left:") def is_load_workspace_page():