son9john commited on
Commit
3a00e21
·
1 Parent(s): 78dfdc8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -173,13 +173,12 @@ def transcribe(audio, text, submit_update=None):
173
  # Return the system message immediately
174
  chat_transcript = system_message['content']
175
 
176
- # Concatenate the chat
177
  chat_transcript = "\n\n".join([f"[ANSWER {answer_count}]{message['role']}: {message['content']}" for message in messages_rev if message['role'] != 'system'])
178
-
179
- # chat_transcript_copy = chat_transcript
180
  # Append the number of tokens used to the end of the chat transcript
181
  chat_transcript += f"\n\nNumber of tokens used: {num_tokens}\n\n"
182
-
183
  now_et = datetime.now(timezone(timedelta(hours=-4)))
184
  published_date = now_et.strftime('%m-%d-%y %H:%M')
185
  df = pd.DataFrame([chat_transcript])
 
173
  # Return the system message immediately
174
  chat_transcript = system_message['content']
175
 
176
+ # Concatenate the chat history
177
  chat_transcript = "\n\n".join([f"[ANSWER {answer_count}]{message['role']}: {message['content']}" for message in messages_rev if message['role'] != 'system'])
178
+
 
179
  # Append the number of tokens used to the end of the chat transcript
180
  chat_transcript += f"\n\nNumber of tokens used: {num_tokens}\n\n"
181
+
182
  now_et = datetime.now(timezone(timedelta(hours=-4)))
183
  published_date = now_et.strftime('%m-%d-%y %H:%M')
184
  df = pd.DataFrame([chat_transcript])