Update app.py
Browse files
app.py
CHANGED
@@ -111,10 +111,6 @@ def transcribe(audio, text):
|
|
111 |
# Append the number of tokens used to the end of the chat transcript
|
112 |
chat_transcript += f"\n\nNumber of tokens used: {num_tokens}\n\n"
|
113 |
|
114 |
-
# Save the chat transcript to a file
|
115 |
-
with open("conversation_history.txt", "a") as f:
|
116 |
-
f.write(chat_transcript_copy)
|
117 |
-
|
118 |
# Upload the chat transcript to Notion
|
119 |
now_et = datetime.now(timezone(timedelta(hours=-5)))
|
120 |
published_date = now_et.strftime('%m-%d-%y %H:%M')
|
|
|
111 |
# Append the number of tokens used to the end of the chat transcript
|
112 |
chat_transcript += f"\n\nNumber of tokens used: {num_tokens}\n\n"
|
113 |
|
|
|
|
|
|
|
|
|
114 |
# Upload the chat transcript to Notion
|
115 |
now_et = datetime.now(timezone(timedelta(hours=-5)))
|
116 |
published_date = now_et.strftime('%m-%d-%y %H:%M')
|