Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -107,12 +107,18 @@ with gr.Blocks(theme=theme) as demo:
|
|
| 107 |
gr.Markdown(topics)
|
| 108 |
with gr.Tabs():
|
| 109 |
with gr.TabItem("Main Page"):
|
| 110 |
-
|
| 111 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 112 |
# image_input = gr.Image(type="pil", label="Upload an image of your pet (optional)")
|
| 113 |
-
|
| 114 |
-
|
| 115 |
-
submit_btn.click(fn=respond, inputs=text_input, outputs=output)
|
| 116 |
with gr.TabItem("🍲 Recipes"):
|
| 117 |
gr.Markdown("Ask Scooby about recipes here!")
|
| 118 |
gr.ChatInterface(fn=respond,title="Pet Recipe Assistant 🍽️",
|
|
|
|
| 107 |
gr.Markdown(topics)
|
| 108 |
with gr.Tabs():
|
| 109 |
with gr.TabItem("Main Page"):
|
| 110 |
+
gr.Markdown("Ask Scooby anything about your pet!")
|
| 111 |
+
gr.ChatInterface(fn=respond, title="Pet Q&A Assistant 🐶",
|
| 112 |
+
chatbot=gr.Chatbot(),
|
| 113 |
+
textbox=gr.Textbox(placeholder="What's your pet question?", label="Ask Scooby"))
|
| 114 |
+
|
| 115 |
+
# with gr.TabItem("Main Page"):
|
| 116 |
+
# with gr.Row():
|
| 117 |
+
# text_input = gr.Textbox(label="Ask Scooby a question about your pet")
|
| 118 |
# image_input = gr.Image(type="pil", label="Upload an image of your pet (optional)")
|
| 119 |
+
# output = gr.Textbox(label="Scooby's Answer")
|
| 120 |
+
# submit_btn = gr.Button("Ask Scooby")
|
| 121 |
+
#submit_btn.click(fn=respond, inputs=text_input, outputs=output)
|
| 122 |
with gr.TabItem("🍲 Recipes"):
|
| 123 |
gr.Markdown("Ask Scooby about recipes here!")
|
| 124 |
gr.ChatInterface(fn=respond,title="Pet Recipe Assistant 🍽️",
|