Update app.py
Browse files
app.py
CHANGED
@@ -128,7 +128,7 @@ async def gen_show(script):
|
|
128 |
|
129 |
@spaces.GPU(duration=100)
|
130 |
async def generator(link):
|
131 |
-
if not link.startswith("http://") and not
|
132 |
return "URL must start with 'http://' or 'https://'",None
|
133 |
|
134 |
text = fetch_text(link)
|
|
|
128 |
|
129 |
@spaces.GPU(duration=100)
|
130 |
async def generator(link):
|
131 |
+
if not link.startswith("http://") and not link.startswith("https://"):
|
132 |
return "URL must start with 'http://' or 'https://'",None
|
133 |
|
134 |
text = fetch_text(link)
|