hellos commited on
Commit
ee249da
·
verified ·
1 Parent(s): 43b6df2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -124,7 +124,7 @@ import os
124
 
125
 
126
  def transcribe_audio(youtube_link, audio_file):
127
- if youtube_link:
128
  result = audio_to_text(youtube_link, "None")
129
  elif audio_file:
130
  if os.path.exists(audio_file):
 
124
 
125
 
126
  def transcribe_audio(youtube_link, audio_file):
127
+ if len(youtube_link)>=4:
128
  result = audio_to_text(youtube_link, "None")
129
  elif audio_file:
130
  if os.path.exists(audio_file):