Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -337,8 +337,8 @@ def download_video(url, progress_bar, status_text):
|
|
337 |
'referer': 'https://www.youtube.com/',
|
338 |
'http_chunk_size': random.randint(100000000, 150000000),
|
339 |
'retries': 5, # μ¬μλ νμ
|
340 |
-
'sleep_interval':
|
341 |
-
'max_sleep_interval':
|
342 |
'headers': {
|
343 |
'Accept-Language': 'en-US,en;q=0.9',
|
344 |
'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
|
@@ -438,5 +438,5 @@ if download_button:
|
|
438 |
# μ΄κΈ°ν λ‘μ§
|
439 |
if reset_button:
|
440 |
st.session_state.video_url = ""
|
441 |
-
st.rerun()
|
442 |
|
|
|
337 |
'referer': 'https://www.youtube.com/',
|
338 |
'http_chunk_size': random.randint(100000000, 150000000),
|
339 |
'retries': 5, # μ¬μλ νμ
|
340 |
+
'sleep_interval': 4,
|
341 |
+
'max_sleep_interval': 8,
|
342 |
'headers': {
|
343 |
'Accept-Language': 'en-US,en;q=0.9',
|
344 |
'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
|
|
|
438 |
# μ΄κΈ°ν λ‘μ§
|
439 |
if reset_button:
|
440 |
st.session_state.video_url = ""
|
441 |
+
st.rerun()
|
442 |
|