Spaces:
Paused
Paused
2b commited on
Upload app.py with huggingface_hub
Browse files
app.py
CHANGED
|
@@ -12,6 +12,7 @@ from typing import Any
|
|
| 12 |
|
| 13 |
import gradio as gr
|
| 14 |
import numpy as np
|
|
|
|
| 15 |
|
| 16 |
|
| 17 |
OUTPUT_DIR = Path("outputs")
|
|
@@ -187,6 +188,7 @@ def generate_music(
|
|
| 187 |
return audio, sampling_rate, debug
|
| 188 |
|
| 189 |
|
|
|
|
| 190 |
def generate(
|
| 191 |
job_id: str,
|
| 192 |
project_name: str,
|
|
|
|
| 12 |
|
| 13 |
import gradio as gr
|
| 14 |
import numpy as np
|
| 15 |
+
import spaces
|
| 16 |
|
| 17 |
|
| 18 |
OUTPUT_DIR = Path("outputs")
|
|
|
|
| 188 |
return audio, sampling_rate, debug
|
| 189 |
|
| 190 |
|
| 191 |
+
@spaces.GPU
|
| 192 |
def generate(
|
| 193 |
job_id: str,
|
| 194 |
project_name: str,
|