Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -57,6 +57,7 @@ def function(Textbox,Textbox2,Textbox3):
|
|
57 |
# {"role": "system", "content": content},
|
58 |
# ]
|
59 |
if Textbox2:
|
|
|
60 |
chat = openai.ChatCompletion.create(
|
61 |
model="gpt-3.5-turbo", messages=list(Textbox2.items())
|
62 |
)
|
|
|
57 |
# {"role": "system", "content": content},
|
58 |
# ]
|
59 |
if Textbox2:
|
60 |
+
Textbox2 = list(Textbox2)
|
61 |
chat = openai.ChatCompletion.create(
|
62 |
model="gpt-3.5-turbo", messages=list(Textbox2.items())
|
63 |
)
|