mateoluksenberg commited on
Commit
dd93766
·
verified ·
1 Parent(s): 0a3a3ec

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
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: