Sheepbon commited on
Commit
9f7d556
·
verified ·
1 Parent(s): 2e2e5ec

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -152,8 +152,8 @@ def vote(data: gr.LikeData):
152
  title = """# 🐑 NutriAssist 🌱"""
153
 
154
  with gr.Blocks() as demo:
155
- chatbot = gr.Chatbot(label="NutriAssist")
156
- chatbot.like(vote, None, None)
157
 
158
 
159
  with gr.Row(scale=1):
@@ -178,6 +178,8 @@ with gr.Blocks() as demo:
178
  show_download_button = False)
179
 
180
  with gr.Column(scale=2):
 
 
181
  with gr.Row():
182
  msg = gr.Textbox(placeholder="Ask about an item (e.g., banana peel)", label="Your Question")
183
  checkboxes = gr.CheckboxGroup(
@@ -190,7 +192,6 @@ with gr.Blocks() as demo:
190
  choices=["Show fun facts", "Explain why", "Summarize rules"],
191
  label="Customize your response"
192
  )
193
- gr.ChatInterface(respond, type="messages")
194
 
195
  send_btn = gr.Button("Send")
196
  history_state = gr.State([])
 
152
  title = """# 🐑 NutriAssist 🌱"""
153
 
154
  with gr.Blocks() as demo:
155
+ # chatbot = gr.Chatbot(label="NutriAssist")
156
+ # chatbot.like(vote, None, None)
157
 
158
 
159
  with gr.Row(scale=1):
 
178
  show_download_button = False)
179
 
180
  with gr.Column(scale=2):
181
+
182
+ 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(
 
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([])