aananyajha commited on
Commit
ecec8e3
·
verified ·
1 Parent(s): f7e6702

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -0
app.py CHANGED
@@ -105,6 +105,14 @@ with gr.Blocks(theme=theme) as demo:
105
  text_input = gr.Textbox(label="Ask Scooby a question about your pet")
106
  # image_input = gr.Image(type="pil", label="Upload an image of your pet (optional)")
107
  output = gr.Textbox(label="Scooby's Answer")
 
 
 
 
 
 
 
 
108
 
109
  submit_btn = gr.Button("Ask Scooby")
110
 
 
105
  text_input = gr.Textbox(label="Ask Scooby a question about your pet")
106
  # image_input = gr.Image(type="pil", label="Upload an image of your pet (optional)")
107
  output = gr.Textbox(label="Scooby's Answer")
108
+ with gr.Tab("🍲 Recipes"):
109
+ gr.ChatInterface(
110
+ fn=respond_recipe,
111
+ title="Pet Recipe Assistant 🍽️",
112
+ textbox=gr.Textbox(placeholder="What does your pet need a recipe for?", label="Recipe Request"),
113
+ chat_history=True,
114
+ retry_btn="🔁 Try Again",
115
+ clear_btn="🧹 Clear Chat"
116
 
117
  submit_btn = gr.Button("Ask Scooby")
118