Spaces:
Running
on
Zero
Running
on
Zero
soujanyaporia
commited on
Commit
•
fe39952
1
Parent(s):
2f4c30f
Update app.py
Browse files
app.py
CHANGED
@@ -1,3 +1,4 @@
|
|
|
|
1 |
import gradio as gr
|
2 |
import json
|
3 |
import torch
|
@@ -8,7 +9,7 @@ from models import AudioDiffusion, DDPMScheduler
|
|
8 |
from audioldm.audio.stft import TacotronSTFT
|
9 |
from audioldm.variational_autoencoder import AutoencoderKL
|
10 |
from gradio import Markdown
|
11 |
-
|
12 |
|
13 |
# Automatic device detection
|
14 |
if torch.cuda.is_available():
|
|
|
1 |
+
import spaces
|
2 |
import gradio as gr
|
3 |
import json
|
4 |
import torch
|
|
|
9 |
from audioldm.audio.stft import TacotronSTFT
|
10 |
from audioldm.variational_autoencoder import AutoencoderKL
|
11 |
from gradio import Markdown
|
12 |
+
|
13 |
|
14 |
# Automatic device detection
|
15 |
if torch.cuda.is_available():
|