Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -52,7 +52,8 @@ def fetch_text(url):
|
|
52 |
print(full_url)
|
53 |
print("Exited Webpage Extraction")
|
54 |
return validate_url(full_url)
|
55 |
-
|
|
|
56 |
def synthesize(article_url,progress_audio=gr.Progress()):
|
57 |
if not article_url.startswith("http://") and not article_url.startswith("https://"):
|
58 |
return "URL must start with 'http://' or 'https://'",None
|
|
|
52 |
print(full_url)
|
53 |
print("Exited Webpage Extraction")
|
54 |
return validate_url(full_url)
|
55 |
+
|
56 |
+
@spaces.GPU(duration=150)
|
57 |
def synthesize(article_url,progress_audio=gr.Progress()):
|
58 |
if not article_url.startswith("http://") and not article_url.startswith("https://"):
|
59 |
return "URL must start with 'http://' or 'https://'",None
|