KingNish commited on
Commit
34c1ae0
1 Parent(s): 3458240

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -118,7 +118,7 @@ def respond(message, history):
118
  response = client_gemma.chat_completion(func_caller, max_tokens=200)
119
  response = str(response)
120
  try:
121
- response = response[int(response.find("{")):int(response.rfind("}"))]
122
  except:
123
  print("A error occured")
124
  response = response.replace("\\n", "")
 
118
  response = client_gemma.chat_completion(func_caller, max_tokens=200)
119
  response = str(response)
120
  try:
121
+ response = response[int(response.find("{")):(int(response.rfind("}"))+1)]
122
  except:
123
  print("A error occured")
124
  response = response.replace("\\n", "")