shlokamhaisekar commited on
Commit
c7b1ab4
·
verified ·
1 Parent(s): 1b9f06a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -137,7 +137,7 @@ def respond(message, history, checkboxes, checkboxes2, checkboxes3):
137
 
138
  messages.append({"role":"user","content": message})
139
 
140
-
141
 
142
  response = client.chat_completion(messages, max_tokens = 700, temperature = 0.2, top_p = 0.3)
143
 
@@ -190,7 +190,7 @@ with gr.Blocks(theme = chat_theme) as demo:
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,6 +209,7 @@ 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(
 
137
 
138
  messages.append({"role":"user","content": message})
139
 
140
+ #shloka is cool
141
 
142
  response = client.chat_completion(messages, max_tokens = 700, temperature = 0.2, top_p = 0.3)
143
 
 
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
  choices=["Vegetarian", "Vegan", "Dairy Free", "Gluten Free", "Nut Free"],
210
  label="Dietary Restriction"
211
  )
212
+ gr.ChatInterface(respond, additional_inputs=[checkboxes, checkboxes2, checkboxes3], type="messages")
213
  # send_btn = gr.Button("Send")
214
  # history_state = gr.State([])
215
  # send_btn.click(