son9john commited on
Commit
026690c
·
1 Parent(s): 379d156

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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-62e861a0b35f43da8ef9a7789512b8c2?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,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-Mine-922ea77abf8b4493bd63909b43bfbb2f?pvs=4', title=str(published_date), api_key=API_KEY)
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-Mine-922ea77abf8b4493bd63909b43bfbb2f?pvs=4', title=str(published_date), api_key=API_KEY)
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