Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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("</
|
| 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", "")
|