Spaces:
Running
on
Zero
Running
on
Zero
nithinraok
commited on
Commit
·
dca363a
1
Parent(s):
52039c9
update to use zeroGPU
Browse filesSigned-off-by: nithinraok <nithinrao.koluguri@gmail.com>
app.py
CHANGED
|
@@ -1,5 +1,6 @@
|
|
| 1 |
import shutil
|
| 2 |
import gradio as gr
|
|
|
|
| 3 |
import yt_dlp
|
| 4 |
import os
|
| 5 |
import tempfile
|
|
@@ -410,7 +411,7 @@ def download_youtube_audio(url, force_reload=False):
|
|
| 410 |
except Exception as e:
|
| 411 |
return None, f"❌ Download error: {str(e)}"
|
| 412 |
|
| 413 |
-
|
| 414 |
def infer(audio_path, youtube_url, prompt_text):
|
| 415 |
try:
|
| 416 |
final_audio_path = None
|
|
|
|
| 1 |
import shutil
|
| 2 |
import gradio as gr
|
| 3 |
+
import spaces
|
| 4 |
import yt_dlp
|
| 5 |
import os
|
| 6 |
import tempfile
|
|
|
|
| 411 |
except Exception as e:
|
| 412 |
return None, f"❌ Download error: {str(e)}"
|
| 413 |
|
| 414 |
+
@spaces.GPU
|
| 415 |
def infer(audio_path, youtube_url, prompt_text):
|
| 416 |
try:
|
| 417 |
final_audio_path = None
|