Skip to content

Commit 3f18091

Browse files
committed
add tooltips to copilot page
1 parent 018c180 commit 3f18091

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

daras_ai_v2/doc_search_settings_widgets.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,9 @@ def bulk_documents_uploader(
3636
label: str,
3737
key: str = "documents",
3838
accept: typing.Iterable[str] = None,
39+
help: str | None = None,
3940
) -> list[str]:
40-
gui.write(label, className="gui-input")
41+
gui.write(label, help=help, className="gui-input", unsafe_allow_html=True)
4142
documents = gui.session_state.get(key) or []
4243
if isinstance(documents, str):
4344
documents = [documents]

daras_ai_v2/text_to_speech_settings_widgets.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -354,6 +354,7 @@ def elevenlabs_selector(page: "BasePage"):
354354
elevenlabs_use_custom_key = gui.checkbox(
355355
"Use custom API key + Voice ID",
356356
value=bool(gui.session_state.get("elevenlabs_api_key")),
357+
tooltip="[Learn how](https://gooey.ai/docs/guides/lipsync-videos-with-custom-voices) to add custom voices!",
357358
)
358359
if elevenlabs_use_custom_key:
359360
elevenlabs_api_key = gui.text_input(

recipes/VideoBots.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -333,16 +333,15 @@ def render_form_v2(self):
333333
""",
334334
key="bot_script",
335335
height=300,
336+
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!",
336337
)
337338

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

340341
bulk_documents_uploader(
341-
"""
342-
#### 📄 Knowledge
343-
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.
344-
""",
342+
"#### 📄 Knowledge",
345343
accept=["audio/*", "application/*", "video/*", "text/*"],
344+
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)",
346345
)
347346

348347
gui.markdown("#### 💪 Capabilities")
@@ -479,6 +478,7 @@ def render_settings(self):
479478
gui.session_state.get("input_glossary_document")
480479
or gui.session_state.get("output_glossary_document")
481480
),
481+
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!",
482482
)
483483
if enable_glossary:
484484
gui.caption(

0 commit comments

Comments
 (0)