Spaces:
Running on Zero
Running on Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -7,7 +7,7 @@ import torchaudio
|
|
| 7 |
import gradio as gr
|
| 8 |
import re
|
| 9 |
|
| 10 |
-
llasa_model_id = '
|
| 11 |
|
| 12 |
tokenizer = AutoTokenizer.from_pretrained(llasa_model_id)
|
| 13 |
|
|
@@ -211,7 +211,7 @@ def infer(sample_audio_path, target_text, temperature, top_p, repetition_penalty
|
|
| 211 |
return (16000, gen_wav[0, 0, :].cpu().numpy())
|
| 212 |
|
| 213 |
with gr.Blocks() as app_tts:
|
| 214 |
-
gr.Markdown("#
|
| 215 |
ref_audio_input = gr.Audio(label="Reference Audio", type="filepath")
|
| 216 |
gen_text_input = gr.Textbox(label="Text to Generate", lines=10)
|
| 217 |
|
|
@@ -248,9 +248,9 @@ with gr.Blocks() as app_credits:
|
|
| 248 |
with gr.Blocks() as app:
|
| 249 |
gr.Markdown(
|
| 250 |
"""
|
| 251 |
-
#
|
| 252 |
|
| 253 |
-
This is a
|
| 254 |
|
| 255 |
The model is fine-tuned by Japanese audio data.
|
| 256 |
|
|
|
|
| 7 |
import gradio as gr
|
| 8 |
import re
|
| 9 |
|
| 10 |
+
llasa_model_id = 'NandemoGHS/Anime-Llasa-3B'
|
| 11 |
|
| 12 |
tokenizer = AutoTokenizer.from_pretrained(llasa_model_id)
|
| 13 |
|
|
|
|
| 211 |
return (16000, gen_wav[0, 0, :].cpu().numpy())
|
| 212 |
|
| 213 |
with gr.Blocks() as app_tts:
|
| 214 |
+
gr.Markdown("# Anime Llasa 3B")
|
| 215 |
ref_audio_input = gr.Audio(label="Reference Audio", type="filepath")
|
| 216 |
gen_text_input = gr.Textbox(label="Text to Generate", lines=10)
|
| 217 |
|
|
|
|
| 248 |
with gr.Blocks() as app:
|
| 249 |
gr.Markdown(
|
| 250 |
"""
|
| 251 |
+
# Anime Llasa 3B
|
| 252 |
|
| 253 |
+
This is a web UI for Anime Llasa 3B TTS model. You can check out the model [here](https://huggingface.co/OmniAICreator/Anime-Llasa-3B).
|
| 254 |
|
| 255 |
The model is fine-tuned by Japanese audio data.
|
| 256 |
|