Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 |
-
|
|
|
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)}")
|