diff --git a/daras_ai_v2/doc_search_settings_widgets.py b/daras_ai_v2/doc_search_settings_widgets.py index 186075646..2c0b45cb5 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, + 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] diff --git a/daras_ai_v2/text_to_speech_settings_widgets.py b/daras_ai_v2/text_to_speech_settings_widgets.py index 9f099d77e..51465e905 100644 --- a/daras_ai_v2/text_to_speech_settings_widgets.py +++ b/daras_ai_v2/text_to_speech_settings_widgets.py @@ -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( diff --git a/recipes/VideoBots.py b/recipes/VideoBots.py index 2ed148ef9..fcece9c0d 100644 --- a/recipes/VideoBots.py +++ b/recipes/VideoBots.py @@ -333,16 +333,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") @@ -479,6 +478,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(