Update app.py
Browse files
app.py
CHANGED
@@ -105,7 +105,7 @@ def transcribe(audio, text):
|
|
105 |
if counter > 0:
|
106 |
# Upload the chat transcript to Notion
|
107 |
df = pd.DataFrame([chat_transcript])
|
108 |
-
notion_df.upload(df, 'https://www.notion.so/US-
|
109 |
|
110 |
counter += 1
|
111 |
messages = [{"role": "system", "content": initial_message}]
|
@@ -135,7 +135,7 @@ def transcribe(audio, text):
|
|
135 |
now_et = datetime.now(timezone(timedelta(hours=-4)))
|
136 |
# Format the time as string (YY-MM-DD HH:MM)
|
137 |
published_date = now_et.strftime('%m-%d-%y %H:%M')
|
138 |
-
notion_df.upload(df, 'https://www.notion.so/US-
|
139 |
|
140 |
# Return the chat transcript
|
141 |
return chat_transcript
|
|
|
105 |
if counter > 0:
|
106 |
# Upload the chat transcript to Notion
|
107 |
df = pd.DataFrame([chat_transcript])
|
108 |
+
notion_df.upload(df, 'https://www.notion.so/US-Mine-922ea77abf8b4493bd63909b43bfbb2f?pvs=4', title=str(published_date), api_key=API_KEY)
|
109 |
|
110 |
counter += 1
|
111 |
messages = [{"role": "system", "content": initial_message}]
|
|
|
135 |
now_et = datetime.now(timezone(timedelta(hours=-4)))
|
136 |
# Format the time as string (YY-MM-DD HH:MM)
|
137 |
published_date = now_et.strftime('%m-%d-%y %H:%M')
|
138 |
+
notion_df.upload(df, 'https://www.notion.so/US-Mine-922ea77abf8b4493bd63909b43bfbb2f?pvs=4', title=str(published_date), api_key=API_KEY)
|
139 |
|
140 |
# Return the chat transcript
|
141 |
return chat_transcript
|