AnaviJoshi commited on
Commit
0567350
·
verified ·
1 Parent(s): 78b8009

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -102,14 +102,14 @@ with gr.Blocks(theme=theme) as demo:
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
  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
 
115
 
 
102
  with gr.Column():
103
  gr.Markdown(topics)
104
  with gr.Tabs():
105
+ with gr.TabItem("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
  submit_btn.click(fn=respond, inputs=text_input, outputs=output)
112
+ with gr.TabItem("🍲 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
 
115