Danker commited on
Commit
3f29928
·
1 Parent(s): 9bb764a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -80,8 +80,6 @@ def validate_youtube(url):
80
 
81
  def validate_url(url):
82
  #https://
83
- if url[0:8] == "https://" or url[0:8] == "http://"
84
- url = url[8::]
85
 
86
  if not validators.url(url):
87
  return True
@@ -105,6 +103,9 @@ def audio_clipper(index, seg_total):
105
  return my_audio
106
 
107
  def transcribe(video_url):
 
 
 
108
 
109
  text = ""
110
  if validate_url(video_url):
 
80
 
81
  def validate_url(url):
82
  #https://
 
 
83
 
84
  if not validators.url(url):
85
  return True
 
103
  return my_audio
104
 
105
  def transcribe(video_url):
106
+
107
+ if video_url[0:8] == "https://" or video_url[0:8] == "http://":
108
+ video_url = video_url[8::]
109
 
110
  text = ""
111
  if validate_url(video_url):