KingNish commited on
Commit
53d00bc
1 Parent(s): a5f2d18

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -171,7 +171,7 @@ def respond(
171
  response = client.chat_completion( messages, max_tokens=150)
172
  response = str(response)
173
  try:
174
- response = response[int(response.find("{")):int(response.index("</functioncall>"))]
175
  except:
176
  print("A error occured")
177
  response = response.replace("\\n", "")
 
171
  response = client.chat_completion( messages, max_tokens=150)
172
  response = str(response)
173
  try:
174
+ response = response[int(response.find("{")):int(response.index("</"))]
175
  except:
176
  print("A error occured")
177
  response = response.replace("\\n", "")