jpjp9292 commited on
Commit
4300b25
β€’
1 Parent(s): 9fe6b58

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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': 3,
341
- 'max_sleep_interval': 10,
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() # st.experimental_rerun()을 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