ameerazam08 commited on
Commit
b3812f7
1 Parent(s): 8d46fff

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -3
app.py CHANGED
@@ -1,12 +1,18 @@
1
  import torch
2
  import torchaudio
3
- import spaces
4
  from einops import rearrange
5
- 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
  from huggingface_hub import login
 
10
  hf_token = os.getenv('HF_TOKEN')
11
  login(token=hf_token,add_to_git_credential=True)
12
 
 
1
  import torch
2
  import torchaudio
 
3
  from einops import rearrange
 
 
4
  import gradio as gr
5
+ import spaces
6
  import os
7
+ import uuid
8
+
9
+ # Importing the model-related functions
10
+ from stable_audio_tools import get_pretrained_model
11
+ from stable_audio_tools.inference.generation import generate_diffusion_cond
12
+
13
+
14
  from huggingface_hub import login
15
+
16
  hf_token = os.getenv('HF_TOKEN')
17
  login(token=hf_token,add_to_git_credential=True)
18