Spaces:
Running
on
Zero
Running
on
Zero
ameerazam08
commited on
Commit
•
ed9a9ee
1
Parent(s):
004c74c
Update app.py
Browse files
app.py
CHANGED
@@ -6,6 +6,9 @@ from stable_audio_tools import get_pretrained_model
|
|
6 |
from stable_audio_tools.inference.generation import generate_diffusion_cond
|
7 |
import gradio as gr
|
8 |
import os
|
|
|
|
|
|
|
9 |
|
10 |
# Define the function to generate audio
|
11 |
@spaces.GPU()
|
|
|
6 |
from stable_audio_tools.inference.generation import generate_diffusion_cond
|
7 |
import gradio as gr
|
8 |
import os
|
9 |
+
from huggingface_hub import login
|
10 |
+
hf_token = os.getenv('HF_TOKEN')
|
11 |
+
login(token=hf_token)
|
12 |
|
13 |
# Define the function to generate audio
|
14 |
@spaces.GPU()
|