Spaces:
Runtime error
Runtime error
bug
Browse files
app.py
CHANGED
|
@@ -561,6 +561,7 @@ st.subheader("Sequence Loader")
|
|
| 561 |
# input hash as secret
|
| 562 |
|
| 563 |
input_hash = st.text_input("Enter Hash:")
|
|
|
|
| 564 |
if st.button('Load Sequence'):
|
| 565 |
HASH_KEY = st.secrets["hash_key"]
|
| 566 |
if input_hash == HASH_KEY:
|
|
@@ -572,7 +573,6 @@ if st.button('Load Sequence'):
|
|
| 572 |
|
| 573 |
progress_text = 'Loading...'
|
| 574 |
loading_bar = st.progress(0, text=progress_text)
|
| 575 |
-
item_limit = st.number_input(value=3)
|
| 576 |
df_sheet = st.session_state.gsheed
|
| 577 |
yt.get_channel_video_data(st.session_state["channel_id"], df_sheet,loading_bar, progress_text, item_limit)
|
| 578 |
df_videos = get_videos_from_yt(yt)
|
|
|
|
| 561 |
# input hash as secret
|
| 562 |
|
| 563 |
input_hash = st.text_input("Enter Hash:")
|
| 564 |
+
item_limit = st.number_input("Number of Videos",value=3)
|
| 565 |
if st.button('Load Sequence'):
|
| 566 |
HASH_KEY = st.secrets["hash_key"]
|
| 567 |
if input_hash == HASH_KEY:
|
|
|
|
| 573 |
|
| 574 |
progress_text = 'Loading...'
|
| 575 |
loading_bar = st.progress(0, text=progress_text)
|
|
|
|
| 576 |
df_sheet = st.session_state.gsheed
|
| 577 |
yt.get_channel_video_data(st.session_state["channel_id"], df_sheet,loading_bar, progress_text, item_limit)
|
| 578 |
df_videos = get_videos_from_yt(yt)
|