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 Aug 21, 2024
1 parent 9159dd5 commit 9df64d4
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,
tooltip: str | None = None,
) -> list[str]:
gui.write(label, className="gui-input")
gui.write(label, tooltip=tooltip, 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 @@ -338,6 +338,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 @@ -337,16 +337,15 @@ def render_form_v2(self):
""",
key="bot_script",
height=300,
tooltip="[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/*"],
tooltip="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 @@ -483,6 +482,7 @@ def render_settings(self):
gui.session_state.get("input_glossary_document")
or gui.session_state.get("output_glossary_document")
),
tooltip="[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 9df64d4

Please sign in to comment.