Spaces:
Running
on
Zero
Running
on
Zero
minor bool error
Browse files
app.py
CHANGED
@@ -33,7 +33,7 @@ def fetch_text(url):
|
|
33 |
return validate_url(full_url)
|
34 |
@spaces.GPU
|
35 |
def synthesize(article_url,progress_audio=gr.Progress()):
|
36 |
-
if not article_url.startswith("http://") and article_url.startswith("https://"):
|
37 |
return "URL must start with 'http://' or 'https://'",None
|
38 |
|
39 |
text = fetch_text(article_url)
|
|
|
33 |
return validate_url(full_url)
|
34 |
@spaces.GPU
|
35 |
def synthesize(article_url,progress_audio=gr.Progress()):
|
36 |
+
if not article_url.startswith("http://") and not article_url.startswith("https://"):
|
37 |
return "URL must start with 'http://' or 'https://'",None
|
38 |
|
39 |
text = fetch_text(article_url)
|