timeki commited on
Commit
63d1de4
1 Parent(s): e77b244

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -196,7 +196,7 @@ async def chat(query,history,audience,sources,reports):
196
  if os.getenv("GRADIO_ENV") != "local":
197
  timestamp = str(datetime.now().timestamp())
198
  file = timestamp + ".json"
199
- prompt = history[-1][0]
200
  logs = {
201
  "user_id": str(user_id),
202
  "prompt": prompt,
 
196
  if os.getenv("GRADIO_ENV") != "local":
197
  timestamp = str(datetime.now().timestamp())
198
  file = timestamp + ".json"
199
+ prompt = history[1]["content"]
200
  logs = {
201
  "user_id": str(user_id),
202
  "prompt": prompt,