Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -6,15 +6,17 @@ from xcodec2.modeling_xcodec2 import XCodec2Model
|
|
| 6 |
import torchaudio
|
| 7 |
import gradio as gr
|
| 8 |
import tempfile
|
|
|
|
| 9 |
|
| 10 |
-
|
| 11 |
|
| 12 |
-
tokenizer = AutoTokenizer.from_pretrained(
|
| 13 |
|
| 14 |
model = AutoModelForCausalLM.from_pretrained(
|
| 15 |
-
|
| 16 |
trust_remote_code=True,
|
| 17 |
device_map='cuda',
|
|
|
|
| 18 |
)
|
| 19 |
|
| 20 |
model_path = "srinivasbilla/xcodec2"
|
|
@@ -162,9 +164,9 @@ with gr.Blocks() as app_credits:
|
|
| 162 |
with gr.Blocks() as app:
|
| 163 |
gr.Markdown(
|
| 164 |
"""
|
| 165 |
-
# llasa
|
| 166 |
|
| 167 |
-
This is a local web UI for llasa
|
| 168 |
|
| 169 |
The checkpoints support English and Chinese.
|
| 170 |
|
|
|
|
| 6 |
import torchaudio
|
| 7 |
import gradio as gr
|
| 8 |
import tempfile
|
| 9 |
+
import os
|
| 10 |
|
| 11 |
+
llasa_1b ='SebastianBodza/Kartoffel-1B-v0.1'
|
| 12 |
|
| 13 |
+
tokenizer = AutoTokenizer.from_pretrained(llasa_1b, token=os.getenv("HF_TOKEN"))
|
| 14 |
|
| 15 |
model = AutoModelForCausalLM.from_pretrained(
|
| 16 |
+
llasa_1b,
|
| 17 |
trust_remote_code=True,
|
| 18 |
device_map='cuda',
|
| 19 |
+
token=os.getenv("HF_TOKEN")
|
| 20 |
)
|
| 21 |
|
| 22 |
model_path = "srinivasbilla/xcodec2"
|
|
|
|
| 164 |
with gr.Blocks() as app:
|
| 165 |
gr.Markdown(
|
| 166 |
"""
|
| 167 |
+
# Kartoffel-1B-v0.1 - llasa 1b TTS
|
| 168 |
|
| 169 |
+
This is a local web UI for my finetune of the llasa 1b SOTA(imo) Zero Shot Voice Cloning and TTS model.
|
| 170 |
|
| 171 |
The checkpoints support English and Chinese.
|
| 172 |
|