tommy24 commited on
Commit
0c164e2
·
1 Parent(s): 5b10d58

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -158,8 +158,8 @@ def function(Textbox,Textbox2, Textbox3):
158
  response = requests.post(target2, json={
159
  "messages": messages
160
  }).json()
161
- # reply = chat.choices[0].message.content
162
- reply = response['choices'][0]['message']['content']
163
  messages.append({"role": "assistant", "content": reply})
164
  return reply
165
  except Exception as e:
 
158
  response = requests.post(target2, json={
159
  "messages": messages
160
  }).json()
161
+ # reply = response['choices'][0]['message']['content']
162
+ reply = response["content"]
163
  messages.append({"role": "assistant", "content": reply})
164
  return reply
165
  except Exception as e: