Spaces:
Runtime error
Runtime error
bugfux
Browse files
app.py
CHANGED
|
@@ -376,7 +376,6 @@ if st.button('Extract Sentences'):
|
|
| 376 |
'Lextext':[st.session_state.extract[0]],
|
| 377 |
'GPTSummary':[0]}
|
| 378 |
df_current_ts = pd.DataFrame({**video_info,**transcript_info})
|
| 379 |
-
st.write(df_current_ts)
|
| 380 |
|
| 381 |
# initial write.
|
| 382 |
#df_new_sheet = pd.concat([df_current_ts])
|
|
@@ -391,7 +390,6 @@ if st.button('Extract Sentences'):
|
|
| 391 |
df_current_ts_id = list(df_current_ts.ID)[0]
|
| 392 |
if df_current_ts_id not in list(df_sheet.ID):
|
| 393 |
df_new_sheet = pd.concat([df_sheet,df_current_ts])
|
| 394 |
-
st.write(df_new_sheet)
|
| 395 |
mysheet.write_gspread(df_new_sheet)
|
| 396 |
st.session_state.gsheed = df_new_sheet
|
| 397 |
st.write('video added to sheet')
|
|
|
|
| 376 |
'Lextext':[st.session_state.extract[0]],
|
| 377 |
'GPTSummary':[0]}
|
| 378 |
df_current_ts = pd.DataFrame({**video_info,**transcript_info})
|
|
|
|
| 379 |
|
| 380 |
# initial write.
|
| 381 |
#df_new_sheet = pd.concat([df_current_ts])
|
|
|
|
| 390 |
df_current_ts_id = list(df_current_ts.ID)[0]
|
| 391 |
if df_current_ts_id not in list(df_sheet.ID):
|
| 392 |
df_new_sheet = pd.concat([df_sheet,df_current_ts])
|
|
|
|
| 393 |
mysheet.write_gspread(df_new_sheet)
|
| 394 |
st.session_state.gsheed = df_new_sheet
|
| 395 |
st.write('video added to sheet')
|