barto17 commited on
Commit
9a2a1d6
·
1 Parent(s): 4442b41

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -75,8 +75,8 @@ def transcribe(Microphone, File_Upload, URL):
75
  elif Microphone is not None:
76
  file = Microphone
77
 
78
- else if URL:
79
- link = YouTube(url)
80
  source = link.streams.filter(only_audio=True)[0].download(filename="audio.mp4")
81
  else:
82
  file = File_Upload
 
75
  elif Microphone is not None:
76
  file = Microphone
77
 
78
+ elif URL:
79
+ link = YouTube(URL)
80
  source = link.streams.filter(only_audio=True)[0].download(filename="audio.mp4")
81
  else:
82
  file = File_Upload