Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -31,7 +31,7 @@ def respond(
|
|
31 |
req = models.ChatCompletionsRequest()
|
32 |
|
33 |
for val in history:
|
34 |
-
if val[0]
|
35 |
messages.append({"Role": "user", "Content": val[0]})
|
36 |
messages.append({"Role": "assistant", "Content": val[1]})
|
37 |
|
|
|
31 |
req = models.ChatCompletionsRequest()
|
32 |
|
33 |
for val in history:
|
34 |
+
if val[0] and val[1]:
|
35 |
messages.append({"Role": "user", "Content": val[0]})
|
36 |
messages.append({"Role": "assistant", "Content": val[1]})
|
37 |
|