suwesh commited on
Commit
a20c934
·
verified ·
1 Parent(s): 6165f69

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -12
app.py CHANGED
@@ -183,18 +183,18 @@ def respond(
183
 
184
  response = process_input(message)
185
 
186
- for message in client.chat_completion(
187
- messages,
188
- max_tokens=max_tokens,
189
- stream=True,
190
- temperature=temperature,
191
- top_p=top_p,
192
- ):
193
- token = message.choices[0].delta.content
194
-
195
- response += token
196
- yield response
197
-
198
 
199
  """
200
  For information on how to customize the ChatInterface, peruse the gradio docs: https://www.gradio.app/docs/chatinterface
 
183
 
184
  response = process_input(message)
185
 
186
+ #for message in client.chat_completion(
187
+ # messages,
188
+ # max_tokens=max_tokens,
189
+ # stream=True,
190
+ # temperature=temperature,
191
+ # top_p=top_p,
192
+ #):
193
+ # token = message.choices[0].delta.content
194
+
195
+ # response += token
196
+ # yield response
197
+ return response
198
 
199
  """
200
  For information on how to customize the ChatInterface, peruse the gradio docs: https://www.gradio.app/docs/chatinterface