Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -12,6 +12,7 @@ from huggingface_hub import login
|
|
| 12 |
if os.environ.get("HUGGING_FACE_HUB_TOKEN"):
|
| 13 |
login(token=os.environ["HUGGING_FACE_HUB_TOKEN"])
|
| 14 |
|
|
|
|
| 15 |
@spaces.GPU(duration=180)
|
| 16 |
def generate_audio(prompt, duration=10, steps=50, cfg_scale=7):
|
| 17 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
|
|
|
| 12 |
if os.environ.get("HUGGING_FACE_HUB_TOKEN"):
|
| 13 |
login(token=os.environ["HUGGING_FACE_HUB_TOKEN"])
|
| 14 |
|
| 15 |
+
|
| 16 |
@spaces.GPU(duration=180)
|
| 17 |
def generate_audio(prompt, duration=10, steps=50, cfg_scale=7):
|
| 18 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|