Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -101,11 +101,14 @@ with gr.Blocks(theme=theme) as demo:
|
|
| 101 |
with gr.Row():
|
| 102 |
with gr.Column():
|
| 103 |
gr.Markdown(topics)
|
| 104 |
-
with gr.
|
| 105 |
-
|
| 106 |
-
|
| 107 |
-
|
| 108 |
-
|
|
|
|
|
|
|
|
|
|
| 109 |
gr.ChatInterface(
|
| 110 |
fn=respond_recipe,
|
| 111 |
title="Pet Recipe Assistant 🍽️",
|
|
@@ -114,7 +117,7 @@ with gr.Blocks(theme=theme) as demo:
|
|
| 114 |
retry_btn="🔁 Try Again",
|
| 115 |
clear_btn="🧹 Clear Chat"
|
| 116 |
|
| 117 |
-
|
| 118 |
|
| 119 |
submit_btn.click(fn=respond, inputs=text_input, outputs=output)
|
| 120 |
#inputs=[text_input, image_input can be added once error fixed
|
|
@@ -132,3 +135,8 @@ demo.launch(debug=True)
|
|
| 132 |
|
| 133 |
|
| 134 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 101 |
with gr.Row():
|
| 102 |
with gr.Column():
|
| 103 |
gr.Markdown(topics)
|
| 104 |
+
with gr.Tabs():
|
| 105 |
+
with gr.Tabletem("Main Page:")
|
| 106 |
+
with gr.Row():
|
| 107 |
+
text_input = gr.Textbox(label="Ask Scooby a question about your pet")
|
| 108 |
+
# image_input = gr.Image(type="pil", label="Upload an image of your pet (optional)")
|
| 109 |
+
output = gr.Textbox(label="Scooby's Answer")
|
| 110 |
+
submit_btn = gr.Button("Ask Scooby")
|
| 111 |
+
with gr.Tabletem("🍲 Recipes"):
|
| 112 |
gr.ChatInterface(
|
| 113 |
fn=respond_recipe,
|
| 114 |
title="Pet Recipe Assistant 🍽️",
|
|
|
|
| 117 |
retry_btn="🔁 Try Again",
|
| 118 |
clear_btn="🧹 Clear Chat"
|
| 119 |
|
| 120 |
+
|
| 121 |
|
| 122 |
submit_btn.click(fn=respond, inputs=text_input, outputs=output)
|
| 123 |
#inputs=[text_input, image_input can be added once error fixed
|
|
|
|
| 135 |
|
| 136 |
|
| 137 |
|
| 138 |
+
|
| 139 |
+
|
| 140 |
+
|
| 141 |
+
|
| 142 |
+
|