Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -120,11 +120,11 @@ repo_id="RAGREPORTS-log",
|
|
120 |
every=2
|
121 |
)
|
122 |
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
'retrieved_context': context_for_query,
|
129 |
'model_response': prediction
|
130 |
}
|
|
|
120 |
every=2
|
121 |
)
|
122 |
|
123 |
+
with scheduler.lock:
|
124 |
+
with log_file.open("a") as f:
|
125 |
+
f.write(json.dumps(
|
126 |
+
{
|
127 |
+
'user_input': user_input,
|
128 |
'retrieved_context': context_for_query,
|
129 |
'model_response': prediction
|
130 |
}
|