diff --git a/daras_ai_v2/doc_search_settings_widgets.py b/daras_ai_v2/doc_search_settings_widgets.py index 9b46c9cdf..3ed3fcc48 100644 --- a/daras_ai_v2/doc_search_settings_widgets.py +++ b/daras_ai_v2/doc_search_settings_widgets.py @@ -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] diff --git a/daras_ai_v2/text_to_speech_settings_widgets.py b/daras_ai_v2/text_to_speech_settings_widgets.py index 5214d5cc5..4a217d991 100644 --- a/daras_ai_v2/text_to_speech_settings_widgets.py +++ b/daras_ai_v2/text_to_speech_settings_widgets.py @@ -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( diff --git a/recipes/VideoBots.py b/recipes/VideoBots.py index edc3cadf3..a19d53a6c 100644 --- a/recipes/VideoBots.py +++ b/recipes/VideoBots.py @@ -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") @@ -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(