Spaces:
Paused
Paused
Update app.py
Browse files
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.
|
| 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("}"))]
|
| 122 |
except:
|
| 123 |
print("A error occured")
|
| 124 |
response = response.replace("\\n", "")
|