botsi commited on
Commit
a398fcf
·
verified ·
1 Parent(s): be9f36c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
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
- "role": "user",
401
- "content": user_message,
402
  "ip_address": request.client.host,
403
- "readable_sentence": user_readable_sentence,
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])