Spaces:
Running
Running
mateoluksenberg
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -280,6 +280,7 @@ def simple_chat(message, temperature: float = 0.8, max_length: int = 4096, top_p
|
|
280 |
# formatted_text = buffer
|
281 |
|
282 |
try:
|
|
|
283 |
json_content = json.loads(buffer)
|
284 |
formatted_text = format_json_to_string(json_content)
|
285 |
except json.JSONDecodeError:
|
|
|
280 |
# formatted_text = buffer
|
281 |
|
282 |
try:
|
283 |
+
buffer = buffer.strip('`')
|
284 |
json_content = json.loads(buffer)
|
285 |
formatted_text = format_json_to_string(json_content)
|
286 |
except json.JSONDecodeError:
|