Sheepbon commited on
Commit
8a6bd27
·
verified ·
1 Parent(s): 9925eae

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -181,23 +181,23 @@ with gr.Blocks() as demo:
181
 
182
  chatbot = gr.ChatInterface(respond, type="messages")
183
  with gr.Row():
184
- msg = gr.Textbox(placeholder="Ask about an item (e.g., banana peel)", label="Your Question")
185
  checkboxes = gr.CheckboxGroup(
186
  choices=["Show fun facts", "Explain why", "Summarize rules"],
187
  label="Customize your response"
188
  )
189
  with gr.Row():
190
- msg = gr.Textbox(placeholder="Ask about an item (e.g., banana peel)", label="Your Question")
191
  checkboxes2 = gr.CheckboxGroup(
192
- choices=["Show fun facts", "Explain why", "Summarize rules"],
193
- label="Customize your response"
194
  )
195
 
196
  send_btn = gr.Button("Send")
197
  history_state = gr.State([])
198
  send_btn.click(
199
  fn=respond,
200
- inputs=[msg, checkboxes, history_state],
201
  outputs=[chatbot]
202
  )
203
 
 
181
 
182
  chatbot = gr.ChatInterface(respond, type="messages")
183
  with gr.Row():
184
+ # msg = gr.Textbox(placeholder="Ask about an item (e.g., banana peel)", label="Your Question")
185
  checkboxes = gr.CheckboxGroup(
186
  choices=["Show fun facts", "Explain why", "Summarize rules"],
187
  label="Customize your response"
188
  )
189
  with gr.Row():
190
+ # msg = gr.Textbox(placeholder="Ask about an item (e.g., banana peel)", label="Your Question")
191
  checkboxes2 = gr.CheckboxGroup(
192
+ choices=["Breakfast", "Lunch", "Dinner", "Snack"],
193
+ label="Time of day"
194
  )
195
 
196
  send_btn = gr.Button("Send")
197
  history_state = gr.State([])
198
  send_btn.click(
199
  fn=respond,
200
+ inputs=[checkboxes, history_state],
201
  outputs=[chatbot]
202
  )
203