Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -190,7 +190,7 @@ with gr.Blocks(theme = chat_theme) as demo:
|
|
| 190 |
|
| 191 |
with gr.Column(scale=2):
|
| 192 |
|
| 193 |
-
|
| 194 |
with gr.Row():
|
| 195 |
# msg = gr.Textbox(placeholder="Ask about an item (e.g., banana peel)", label="Your Question")
|
| 196 |
checkboxes = gr.CheckboxGroup(
|
|
@@ -209,13 +209,13 @@ with gr.Blocks(theme = chat_theme) as demo:
|
|
| 209 |
choices=["Vegetarian", "Vegan", "Dairy Free", "Gluten Free", "Nut Free"],
|
| 210 |
label="Dietary Restriction"
|
| 211 |
)
|
| 212 |
-
send_btn = gr.Button("Send")
|
| 213 |
-
history_state = gr.State([])
|
| 214 |
-
send_btn.click(
|
| 215 |
-
|
| 216 |
-
|
| 217 |
-
|
| 218 |
-
)
|
| 219 |
|
| 220 |
demo.launch()
|
| 221 |
#chatbot = gr.ChatInterface(respond, type="messages")
|
|
|
|
| 190 |
|
| 191 |
with gr.Column(scale=2):
|
| 192 |
|
| 193 |
+
gr.ChatInterface(respond, additional_inputs=[checkboxes, checkboxes2, checkboxes3], type="messages")
|
| 194 |
with gr.Row():
|
| 195 |
# msg = gr.Textbox(placeholder="Ask about an item (e.g., banana peel)", label="Your Question")
|
| 196 |
checkboxes = gr.CheckboxGroup(
|
|
|
|
| 209 |
choices=["Vegetarian", "Vegan", "Dairy Free", "Gluten Free", "Nut Free"],
|
| 210 |
label="Dietary Restriction"
|
| 211 |
)
|
| 212 |
+
# send_btn = gr.Button("Send")
|
| 213 |
+
# history_state = gr.State([])
|
| 214 |
+
# send_btn.click(
|
| 215 |
+
# fn=respond,
|
| 216 |
+
# # additional_inputs=[checkboxes, checkboxes2, checkboxes3],
|
| 217 |
+
# outputs=[chatbot]
|
| 218 |
+
# )
|
| 219 |
|
| 220 |
demo.launch()
|
| 221 |
#chatbot = gr.ChatInterface(respond, type="messages")
|