Spaces:
Running
on
Zero
Running
on
Zero
PRamoneda
commited on
Commit
·
e059816
1
Parent(s):
2161fa2
probando
Browse files- app.py +2 -2
- runtime.yaml +1 -0
app.py
CHANGED
|
@@ -9,7 +9,7 @@ from huggingface_hub import hf_hub_download
|
|
| 9 |
import torch
|
| 10 |
import sys
|
| 11 |
import io
|
| 12 |
-
|
| 13 |
|
| 14 |
REPO_ID = "pramoneda/audio"
|
| 15 |
CACHE_BASE = "models"
|
|
@@ -53,7 +53,7 @@ def convert_to_mp3(input_path):
|
|
| 53 |
audio.export(temp_audio.name, format="mp3")
|
| 54 |
return temp_audio.name
|
| 55 |
|
| 56 |
-
|
| 57 |
def process_input(input_file, youtube_url, cookie_file):
|
| 58 |
# captura consola
|
| 59 |
captured_output = io.StringIO()
|
|
|
|
| 9 |
import torch
|
| 10 |
import sys
|
| 11 |
import io
|
| 12 |
+
|
| 13 |
|
| 14 |
REPO_ID = "pramoneda/audio"
|
| 15 |
CACHE_BASE = "models"
|
|
|
|
| 53 |
audio.export(temp_audio.name, format="mp3")
|
| 54 |
return temp_audio.name
|
| 55 |
|
| 56 |
+
|
| 57 |
def process_input(input_file, youtube_url, cookie_file):
|
| 58 |
# captura consola
|
| 59 |
captured_output = io.StringIO()
|
runtime.yaml
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
gpu: true
|