AnaviJoshi commited on
Commit
474ccd7
·
verified ·
1 Parent(s): 48c6021

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -108,6 +108,7 @@ with gr.Blocks(theme=theme) as demo:
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(fn=respond_recipe,title="Pet Recipe Assistant 🍽️",textbox=gr.Textbox(placeholder="What does your pet need a recipe for?", label="Recipe Request"),chat_history=True,retry_btn="🔁 Try Again",clear_btn="🧹 Clear Chat")
113
 
 
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
+ submit_btn.click(fn=respond, inputs=text_input, outputs=output)
112
  with gr.Tabletem("🍲 Recipes"):
113
  gr.ChatInterface(fn=respond_recipe,title="Pet Recipe Assistant 🍽️",textbox=gr.Textbox(placeholder="What does your pet need a recipe for?", label="Recipe Request"),chat_history=True,retry_btn="🔁 Try Again",clear_btn="🧹 Clear Chat")
114