tommy24 commited on
Commit
e122f98
·
1 Parent(s): ea71597

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
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
  )