Spaces:
Sleeping
Sleeping
Jonas Wiesli
commited on
Commit
•
9e9bf1a
1
Parent(s):
96e77e9
fixed wrong json call
Browse files
app.py
CHANGED
@@ -43,7 +43,7 @@ with gr.Blocks() as iface:
|
|
43 |
message_history.append({"role": "user", "content": pair[0]})
|
44 |
print()
|
45 |
if pair[1] is not None:
|
46 |
-
message_history.append({"
|
47 |
completion = openai.ChatCompletion.create(
|
48 |
model="gpt-3.5-turbo",
|
49 |
messages=message_history
|
|
|
43 |
message_history.append({"role": "user", "content": pair[0]})
|
44 |
print()
|
45 |
if pair[1] is not None:
|
46 |
+
message_history.append({"role": "assistant", "content": pair[1]})
|
47 |
completion = openai.ChatCompletion.create(
|
48 |
model="gpt-3.5-turbo",
|
49 |
messages=message_history
|