Spaces:
Paused
Paused
GilangAlRusliadi commited on
Commit ·
a1bf768
1
Parent(s): 86a28e4
Anjay
Browse files
app.py
CHANGED
|
@@ -1,6 +1,4 @@
|
|
| 1 |
import os
|
| 2 |
-
import time
|
| 3 |
-
from streamlit import progress
|
| 4 |
import streamlit as st
|
| 5 |
from streamlit_option_menu import option_menu
|
| 6 |
from youtube import youtube, download_youtube
|
|
@@ -40,11 +38,6 @@ if selected:
|
|
| 40 |
end_time = st.text_input("End Time", value='00:07:31.000')
|
| 41 |
|
| 42 |
if st.button(f"Download and Cut {selected}"):
|
| 43 |
-
my_bar = progress(0)
|
| 44 |
-
for percent_complete in range(100):
|
| 45 |
-
time.sleep(0.1)
|
| 46 |
-
my_bar.progress(percent_complete + 1)
|
| 47 |
-
|
| 48 |
if selected == 'Youtube' or selected == 'Pornhub':
|
| 49 |
video_file, judul_video, video_info = fungsi(video_link, resolution)
|
| 50 |
elif selected == 'Iwara' or selected == 'Mega':
|
|
@@ -58,11 +51,6 @@ if selected:
|
|
| 58 |
|
| 59 |
else:
|
| 60 |
if st.button(f"Download {selected}"):
|
| 61 |
-
my_bar = progress(0)
|
| 62 |
-
for percent_complete in range(100):
|
| 63 |
-
time.sleep(0.1)
|
| 64 |
-
my_bar.progress(percent_complete + 1)
|
| 65 |
-
|
| 66 |
if selected == 'Youtube' or selected == 'Pornhub':
|
| 67 |
video_file, judul_video, video_info = fungsi(video_link, resolution)
|
| 68 |
elif selected == 'Iwara' or selected == 'Mega':
|
|
|
|
| 1 |
import os
|
|
|
|
|
|
|
| 2 |
import streamlit as st
|
| 3 |
from streamlit_option_menu import option_menu
|
| 4 |
from youtube import youtube, download_youtube
|
|
|
|
| 38 |
end_time = st.text_input("End Time", value='00:07:31.000')
|
| 39 |
|
| 40 |
if st.button(f"Download and Cut {selected}"):
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 41 |
if selected == 'Youtube' or selected == 'Pornhub':
|
| 42 |
video_file, judul_video, video_info = fungsi(video_link, resolution)
|
| 43 |
elif selected == 'Iwara' or selected == 'Mega':
|
|
|
|
| 51 |
|
| 52 |
else:
|
| 53 |
if st.button(f"Download {selected}"):
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 54 |
if selected == 'Youtube' or selected == 'Pornhub':
|
| 55 |
video_file, judul_video, video_info = fungsi(video_link, resolution)
|
| 56 |
elif selected == 'Iwara' or selected == 'Mega':
|