AnaviJoshi commited on
Commit
1007a99
·
verified ·
1 Parent(s): 1a14a62

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -107,11 +107,11 @@ with gr.Blocks(theme=theme) as demo:
107
  gr.Markdown(topics)
108
  with gr.Tabs():
109
  with gr.TabItem("Main Page"):
110
- gr.Markdown("Ask Scooby anything about your pet!")
111
- gr.ChatInterface(fn=respond, title="Pet Q&A Assistant 🐶",
112
- chatbot=gr.Chatbot(),
113
- textbox=gr.Textbox(placeholder="What's your pet question?", label="Ask Scooby"))
114
-
115
  # with gr.TabItem("Main Page"):
116
  # with gr.Row():
117
  # text_input = gr.Textbox(label="Ask Scooby a question about your pet")
 
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
+ output = gr.Textbox(label="Scooby's Answer")
113
+ submit_btn = gr.Button("Ask Scooby") # Make sure this is defined here
114
+ submit_btn.click(fn=respond, inputs=[text_input], outputs=output)
115
  # with gr.TabItem("Main Page"):
116
  # with gr.Row():
117
  # text_input = gr.Textbox(label="Ask Scooby a question about your pet")