Update app.py
Browse files
app.py
CHANGED
@@ -76,7 +76,7 @@ def transcribe(audio, text):
|
|
76 |
chat_transcript += f"\n\nNumber of tokens used: {num_tokens}\n\n"
|
77 |
|
78 |
# Get the current time in Eastern Time (ET)
|
79 |
-
now_et = datetime.now(timezone(timedelta(hours=-
|
80 |
# Format the time as string (YY-MM-DD HH:MM)
|
81 |
published_date = now_et.strftime('%m-%d-%y %H:%M')
|
82 |
|
@@ -120,7 +120,7 @@ def transcribe(audio, text):
|
|
120 |
chat_transcript += f"\n\nNumber of tokens used: {num_tokens}\n\n"
|
121 |
|
122 |
# Upload the chat transcript to Notion
|
123 |
-
now_et = datetime.now(timezone(timedelta(hours=-
|
124 |
published_date = now_et.strftime('%m-%d-%y %H:%M')
|
125 |
df = pd.DataFrame([chat_transcript])
|
126 |
notion_df.upload(df, 'https://www.notion.so/YENA-be569d0a40c940e7b6e0679318215790?pvs=4', title=str(published_date), api_key=API_KEY)
|
|
|
76 |
chat_transcript += f"\n\nNumber of tokens used: {num_tokens}\n\n"
|
77 |
|
78 |
# Get the current time in Eastern Time (ET)
|
79 |
+
now_et = datetime.now(timezone(timedelta(hours=-4)))
|
80 |
# Format the time as string (YY-MM-DD HH:MM)
|
81 |
published_date = now_et.strftime('%m-%d-%y %H:%M')
|
82 |
|
|
|
120 |
chat_transcript += f"\n\nNumber of tokens used: {num_tokens}\n\n"
|
121 |
|
122 |
# Upload the chat transcript to Notion
|
123 |
+
now_et = datetime.now(timezone(timedelta(hours=-4)))
|
124 |
published_date = now_et.strftime('%m-%d-%y %H:%M')
|
125 |
df = pd.DataFrame([chat_transcript])
|
126 |
notion_df.upload(df, 'https://www.notion.so/YENA-be569d0a40c940e7b6e0679318215790?pvs=4', title=str(published_date), api_key=API_KEY)
|