Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add tooltips to copilot page #443

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unsafe_allow_html=True is not actually used here? i see only markdown

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
Loading