Skip to content

Commit

Permalink
add tooltips to copilot page
Browse files Browse the repository at this point in the history
  • Loading branch information
anish-work committed Nov 20, 2024
1 parent e452bbe commit cfe3df8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
3 changes: 2 additions & 1 deletion daras_ai_v2/doc_search_settings_widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,9 @@ def bulk_documents_uploader(
label: str,
key: str = "documents",
accept: typing.Iterable[str] = None,
help: str | None = None,
) -> list[str]:
gui.write(label, className="gui-input")
gui.write(label, help=help, className="gui-input", unsafe_allow_html=True)
documents = gui.session_state.get(key) or []
if isinstance(documents, str):
documents = [documents]
Expand Down
1 change: 1 addition & 0 deletions daras_ai_v2/text_to_speech_settings_widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -354,6 +354,7 @@ def elevenlabs_selector(page: "BasePage"):
elevenlabs_use_custom_key = gui.checkbox(
"Use custom API key + Voice ID",
value=bool(gui.session_state.get("elevenlabs_api_key")),
tooltip="[Learn how](https://gooey.ai/docs/guides/lipsync-videos-with-custom-voices) to add custom voices!",
)
if elevenlabs_use_custom_key:
elevenlabs_api_key = gui.text_input(
Expand Down
8 changes: 4 additions & 4 deletions recipes/VideoBots.py
Original file line number Diff line number Diff line change
Expand Up @@ -345,16 +345,15 @@ def render_form_v2(self):
""",
key="bot_script",
height=300,
help="[Learn more](https://gooey.ai/docs/guides/build-your-ai-copilot/craft-your-ai-copilots-personality) about how to prompt your copilot's personality!",
)

language_model_selector(label="#### 🧠 Language Model")

bulk_documents_uploader(
"""
#### 📄 Knowledge
Add documents or links to give your copilot a knowledge base. When asked a question, we'll search them to generate an answer with citations.
""",
"#### 📄 Knowledge",
accept=["audio/*", "application/*", "video/*", "text/*"],
help="Add documents or links to give your copilot a knowledge base. When asked a question, we'll search them to generate an answer with citations. [Learn more](https://gooey.ai/docs/guides/build-your-ai-copilot/curate-your-knowledge-base-documents)",
)

gui.markdown("#### 💪 Capabilities")
Expand Down Expand Up @@ -538,6 +537,7 @@ def render_settings(self):
gui.session_state.get("input_glossary_document")
or gui.session_state.get("output_glossary_document")
),
help="[Learn more](https://gooey.ai/docs/guides/build-your-ai-copilot/advanced-settings#fine-tuned-language-understanding-with-custom-glossaries) about how to super-charge your copilots domain specific language understanding!",
)
if enable_glossary:
gui.caption(
Expand Down

0 comments on commit cfe3df8

Please sign in to comment.