Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -1,10 +1,11 @@
|
|
|
|
1 |
import gradio as gr
|
2 |
import torch
|
3 |
import soundfile as sf
|
4 |
from transformers import AutoTokenizer, AutoModelForCausalLM
|
5 |
from xcodec2.modeling_xcodec2 import XCodec2Model
|
6 |
import tempfile
|
7 |
-
|
8 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
9 |
|
10 |
####################
|
|
|
1 |
+
import spaces
|
2 |
import gradio as gr
|
3 |
import torch
|
4 |
import soundfile as sf
|
5 |
from transformers import AutoTokenizer, AutoModelForCausalLM
|
6 |
from xcodec2.modeling_xcodec2 import XCodec2Model
|
7 |
import tempfile
|
8 |
+
|
9 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
10 |
|
11 |
####################
|