Spaces:
Runtime error
Runtime error
Add title, description, and examples
Browse files
main.py
CHANGED
|
@@ -20,6 +20,13 @@ def run_query(question, db_path="data/videos_subset_more_context.db", #dev path
|
|
| 20 |
|
| 21 |
|
| 22 |
if __name__ == "__main__":
|
| 23 |
-
demo = gr.Interface(fn=run_query,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 24 |
|
| 25 |
demo.launch(share=True)
|
|
|
|
| 20 |
|
| 21 |
|
| 22 |
if __name__ == "__main__":
|
| 23 |
+
demo = gr.Interface(fn=run_query,
|
| 24 |
+
inputs="text",
|
| 25 |
+
outputs="text",
|
| 26 |
+
title="Fitness Q&A",
|
| 27 |
+
description="Ask me a question about fitness! If I can, I'll provide a link to one of Dr. Andrew Huberman's videos with more information.",
|
| 28 |
+
theme="soft",
|
| 29 |
+
examples=["How can I promote muscle recovery?", "How does caffeine affect my workout?"]
|
| 30 |
+
)
|
| 31 |
|
| 32 |
demo.launch(share=True)
|