alemarino2025 commited on
Commit
412e87e
·
verified ·
1 Parent(s): f7004e6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -226,7 +226,8 @@ def predict(user_input, timeout_seconds=1800): # 30 minutes = 1800 seconds
226
  "retrieved_context": context_for_query,
227
  "model_response": prediction
228
  }
229
- f.write(json.dumps(json_data))
 
230
  f.write("\n")
231
  except TypeError as e:
232
  logger.error(f"Failed to serialize JSON: {str(e)}")
 
226
  "retrieved_context": context_for_query,
227
  "model_response": prediction
228
  }
229
+ json.dump(json_data, f)
230
+ #f.write(json.dumps(json_data))
231
  f.write("\n")
232
  except TypeError as e:
233
  logger.error(f"Failed to serialize JSON: {str(e)}")