Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -106,12 +106,12 @@ with gr.Blocks(theme=theme) as demo:
|
|
| 106 |
with gr.Column():
|
| 107 |
gr.Markdown(topics)
|
| 108 |
with gr.Tabs():
|
| 109 |
-
|
| 110 |
with gr.Row():
|
| 111 |
text_input = gr.Textbox(label="Ask Scooby a question about your pet")
|
| 112 |
image_input = gr.Image(type="pil", label="Upload an image of your pet (optional)")
|
| 113 |
output = gr.Textbox(label="Scooby's Answer")
|
| 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!")
|
|
|
|
| 106 |
with gr.Column():
|
| 107 |
gr.Markdown(topics)
|
| 108 |
with gr.Tabs():
|
| 109 |
+
with gr.TabItem("Main Page"):
|
| 110 |
with gr.Row():
|
| 111 |
text_input = gr.Textbox(label="Ask Scooby a question about your pet")
|
| 112 |
image_input = gr.Image(type="pil", label="Upload an image of your pet (optional)")
|
| 113 |
output = gr.Textbox(label="Scooby's Answer")
|
| 114 |
+
submit_btn = gr.Button("Ask Scooby")
|
| 115 |
submit_btn.click(fn=respond, inputs=text_input, outputs=output)
|
| 116 |
with gr.TabItem("🍲 Recipes"):
|
| 117 |
gr.Markdown("Ask Scooby about recipes here!")
|