Update app.py
Browse files
app.py
CHANGED
|
@@ -397,10 +397,9 @@ def generate(
|
|
| 397 |
# Create a DataFrame for the current conversation turn
|
| 398 |
turn_data = {
|
| 399 |
"turn_id": len(existing_data) + 1 if existing_data is not None else 1,
|
| 400 |
-
"
|
| 401 |
-
"content": user_message,
|
| 402 |
"ip_address": request.client.host,
|
| 403 |
-
"
|
| 404 |
"timestamp": timestamp,
|
| 405 |
}
|
| 406 |
turn_df = pd.DataFrame([turn_data])
|
|
|
|
| 397 |
# Create a DataFrame for the current conversation turn
|
| 398 |
turn_data = {
|
| 399 |
"turn_id": len(existing_data) + 1 if existing_data is not None else 1,
|
| 400 |
+
"question": message,
|
|
|
|
| 401 |
"ip_address": request.client.host,
|
| 402 |
+
"answer": readable_sentence,
|
| 403 |
"timestamp": timestamp,
|
| 404 |
}
|
| 405 |
turn_df = pd.DataFrame([turn_data])
|