Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -4,7 +4,6 @@ from transformers import AutoTokenizer, AutoModelForCausalLM
|
|
4 |
import gradio as gr
|
5 |
from snac import SNAC
|
6 |
|
7 |
-
@spaces.GPU
|
8 |
def redistribute_codes(row):
|
9 |
"""
|
10 |
Convert a sequence of token codes into an audio waveform using SNAC.
|
@@ -62,6 +61,7 @@ models = {
|
|
62 |
},
|
63 |
}
|
64 |
|
|
|
65 |
def generate_audio(text, temperature, top_p, max_new_tokens, model_name):
|
66 |
"""
|
67 |
Given input text and model parameters, generate speech audio using the chosen model.
|
|
|
4 |
import gradio as gr
|
5 |
from snac import SNAC
|
6 |
|
|
|
7 |
def redistribute_codes(row):
|
8 |
"""
|
9 |
Convert a sequence of token codes into an audio waveform using SNAC.
|
|
|
61 |
},
|
62 |
}
|
63 |
|
64 |
+
@spaces.GPU
|
65 |
def generate_audio(text, temperature, top_p, max_new_tokens, model_name):
|
66 |
"""
|
67 |
Given input text and model parameters, generate speech audio using the chosen model.
|