Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -183,18 +183,18 @@ def respond(
|
|
183 |
|
184 |
response = process_input(message)
|
185 |
|
186 |
-
for message in client.chat_completion(
|
187 |
-
|
188 |
-
|
189 |
-
|
190 |
-
|
191 |
-
|
192 |
-
):
|
193 |
-
|
194 |
-
|
195 |
-
|
196 |
-
|
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
|