Update app.py
Browse files
app.py
CHANGED
@@ -67,7 +67,7 @@ def transcribe(audio, text):
|
|
67 |
now_et = datetime.now(timezone(timedelta(hours=-4)))
|
68 |
# Format the time as string (YY-MM-DD HH:MM)
|
69 |
published_date = now_et.strftime('%m-%d-%y %H:%M')
|
70 |
-
notion_df.upload(df, 'https://www.notion.so/US-
|
71 |
|
72 |
if text is not None:
|
73 |
# Split the input text into sentences
|
@@ -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
|
|
|
67 |
now_et = datetime.now(timezone(timedelta(hours=-4)))
|
68 |
# Format the time as string (YY-MM-DD HH:MM)
|
69 |
published_date = now_et.strftime('%m-%d-%y %H:%M')
|
70 |
+
notion_df.upload(df, 'https://www.notion.so/US-My-04095f009651427bb8247b9e680b18e5?pvs=4', title=str(published_date), api_key=API_KEY)
|
71 |
|
72 |
if text is not None:
|
73 |
# Split the input text into sentences
|
|
|
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-My-04095f009651427bb8247b9e680b18e5?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-My-04095f009651427bb8247b9e680b18e5?pvs=4', title=str(published_date), api_key=API_KEY)
|
139 |
|
140 |
# Return the chat transcript
|
141 |
return chat_transcript
|