Spaces:
son9john
/
Runtime error

son9john commited on
Commit
94c8733
·
1 Parent(s): 026791e

Update app.py

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