Spaces:
Sleeping
Sleeping
yes
Browse files
app.py
CHANGED
|
@@ -8,7 +8,7 @@ def respond(message, history):
|
|
| 8 |
if history:
|
| 9 |
messages.extend(history)
|
| 10 |
|
| 11 |
-
messages.append({'role':'user','content':
|
| 12 |
|
| 13 |
response = client.chat_completion(
|
| 14 |
messages,
|
|
@@ -19,5 +19,5 @@ def respond(message, history):
|
|
| 19 |
|
| 20 |
demo = gr.ChatInterface(respond, type="messages", autofocus=False, theme='mgetz/Celeb_glitzy')
|
| 21 |
|
| 22 |
-
|
| 23 |
demo.launch()
|
|
|
|
| 8 |
if history:
|
| 9 |
messages.extend(history)
|
| 10 |
|
| 11 |
+
messages.append({'role':'user','content':message})
|
| 12 |
|
| 13 |
response = client.chat_completion(
|
| 14 |
messages,
|
|
|
|
| 19 |
|
| 20 |
demo = gr.ChatInterface(respond, type="messages", autofocus=False, theme='mgetz/Celeb_glitzy')
|
| 21 |
|
| 22 |
+
|
| 23 |
demo.launch()
|