Update app.py
Browse files
app.py
CHANGED
@@ -1,11 +1,4 @@
|
|
1 |
#Codes from killerz3/PodGen & eswardivi/Podcastify
|
2 |
-
import subprocess
|
3 |
-
subprocess.run(
|
4 |
-
'pip install flash-attn --no-build-isolation',
|
5 |
-
env={'FLASH_ATTENTION_SKIP_CUDA_BUILD': "TRUE"},
|
6 |
-
shell=True
|
7 |
-
)
|
8 |
-
|
9 |
import json
|
10 |
import spaces
|
11 |
import httpx
|
@@ -127,7 +120,7 @@ async def gen_show(script):
|
|
127 |
return output_filename
|
128 |
|
129 |
@spaces.GPU(duration=100)
|
130 |
-
|
131 |
if not link.startswith("http://") and not link.startswith("https://"):
|
132 |
return "URL must start with 'http://' or 'https://'",None
|
133 |
|
|
|
1 |
#Codes from killerz3/PodGen & eswardivi/Podcastify
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
import json
|
3 |
import spaces
|
4 |
import httpx
|
|
|
120 |
return output_filename
|
121 |
|
122 |
@spaces.GPU(duration=100)
|
123 |
+
def generator(link):
|
124 |
if not link.startswith("http://") and not link.startswith("https://"):
|
125 |
return "URL must start with 'http://' or 'https://'",None
|
126 |
|