Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 |
-
|
| 185 |
checkboxes = gr.CheckboxGroup(
|
| 186 |
choices=["Show fun facts", "Explain why", "Summarize rules"],
|
| 187 |
label="Customize your response"
|
| 188 |
)
|
| 189 |
with gr.Row():
|
| 190 |
-
|
| 191 |
checkboxes2 = gr.CheckboxGroup(
|
| 192 |
-
choices=["
|
| 193 |
-
label="
|
| 194 |
)
|
| 195 |
|
| 196 |
send_btn = gr.Button("Send")
|
| 197 |
history_state = gr.State([])
|
| 198 |
send_btn.click(
|
| 199 |
fn=respond,
|
| 200 |
-
inputs=[
|
| 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 |
|