Spaces:
son9john
/
Runtime error

son9john commited on
Commit
026791e
·
1 Parent(s): 8e15425

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -109,7 +109,7 @@ def transcribe(audio, text):
109
 
110
 
111
  # Concatenate the chat history
112
- chat_transcript = "\n\n".join([f"[ANSWER {answer_count}]{message['role']}: {message['content']}" for message in messages if message['role'] != 'system'])
113
 
114
  # Append the number of tokens used to the end of the chat transcript
115
  chat_transcript += f"\n\nNumber of tokens used: {num_tokens}\n\n"
 
109
 
110
 
111
  # Concatenate the chat history
112
+ chat_transcript = "\n\n".join([f"[ANSWER {answer_count}]{message['role']}: {message['content']}" for message in messages_rev if message['role'] != 'system'])
113
 
114
  # Append the number of tokens used to the end of the chat transcript
115
  chat_transcript += f"\n\nNumber of tokens used: {num_tokens}\n\n"