Skip to content

Commit

Permalink
disable show tips by default
Browse files Browse the repository at this point in the history
  • Loading branch information
mmartial committed Jun 11, 2024
1 parent 5e34087 commit 2d5a7af
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion OpenAI_DallE_WUI.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def set_ui(self):
style = st.selectbox("style", options=["vivid", "natural"], index=0, key="dalle_style", help="The style of the generated images. Vivid causes the model to lean towards generating hyper-real and dramatic images. Natural causes the model to produce more natural, less hyper-real looking images.")
kwargs = {"quality": quality, "style": style}

dalle_show_tooltip = st.toggle(label="Show Tips", value=True, key="dalle_show_tooltip", help="Show tips on how to use this tool")
dalle_show_tooltip = st.toggle(label="Show Tips", value=False, key="dalle_show_tooltip", help="Show tips on how to use this tool")
dalle_show_history = st.toggle(label='Show Prompt History', value=False, help="Show a list of prompts that you have used in the past (most recent first). Loading a selected prompt does not load the parameters used for the generation.", key="dalle_show_history")
if dalle_show_history:
dalle_allow_history_deletion = st.toggle('Allow Prompt History Deletion', value=False, help="This will allow you to delete a prompt from the history. This will delete the prompt and all its associated files. This cannot be undone.", key="dalle_allow_history_deletion")
Expand Down
2 changes: 1 addition & 1 deletion OpenAI_GPT_WUI.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ def set_ui(self):
else:
presets = list(self.gpt_presets.keys())[0]

gpt_show_tooltip = st.toggle(label="Show Tips", value=True, help="Show some tips on how to use the tool", key="gpt_show_tooltip")
gpt_show_tooltip = st.toggle(label="Show Tips", value=False, help="Show some tips on how to use the tool", key="gpt_show_tooltip")
gpt_show_history = st.toggle(label='Show Prompt History', value=False, help="Show a list of prompts that you have used in the past (most recent first). Loading a selected prompt does not load the parameters used for the generation.", key="gpt_show_history")
if gpt_show_history:
gpt_allow_history_deletion = st.toggle('Allow Prompt History Deletion', value=False, help="This will allow you to delete a prompt from the history. This will delete the prompt and all its associated files. This cannot be undone.", key="gpt_allow_history_deletion")
Expand Down

0 comments on commit 2d5a7af

Please sign in to comment.