Update app.py
Browse files
app.py
CHANGED
@@ -66,7 +66,7 @@ def transcribe(audio, text):
|
|
66 |
now_et = datetime.now(timezone(timedelta(hours=-4)))
|
67 |
# Format the time as string (YY-MM-DD HH:MM)
|
68 |
published_date = now_et.strftime('%m-%d-%y %H:%M')
|
69 |
-
notion_df.upload(df, 'https://www.notion.so/US-
|
70 |
|
71 |
|
72 |
# Split the input text into sentences
|
@@ -106,7 +106,7 @@ def transcribe(audio, text):
|
|
106 |
if counter > 0:
|
107 |
# Upload the chat transcript to Notion
|
108 |
df = pd.DataFrame([chat_transcript])
|
109 |
-
notion_df.upload(df, 'https://www.notion.so/US-
|
110 |
counter += 1
|
111 |
messages = [{"role": "system", "content": initmessage}]
|
112 |
messages = [{"role": "user", "content": subinput_text}]
|
|
|
66 |
now_et = datetime.now(timezone(timedelta(hours=-4)))
|
67 |
# Format the time as string (YY-MM-DD HH:MM)
|
68 |
published_date = now_et.strftime('%m-%d-%y %H:%M')
|
69 |
+
notion_df.upload(df, 'https://www.notion.so/US-Mine-922ea77abf8b4493bd63909b43bfbb2f?pvs=4', title=str(published_date), api_key=API_KEY)
|
70 |
|
71 |
|
72 |
# Split the input text into sentences
|
|
|
106 |
if counter > 0:
|
107 |
# Upload the chat transcript to Notion
|
108 |
df = pd.DataFrame([chat_transcript])
|
109 |
+
notion_df.upload(df, 'https://www.notion.so/US-Mine-922ea77abf8b4493bd63909b43bfbb2f?pvs=4', title=str(published_date+'FULL'), api_key=API_KEY)
|
110 |
counter += 1
|
111 |
messages = [{"role": "system", "content": initmessage}]
|
112 |
messages = [{"role": "user", "content": subinput_text}]
|