Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
|
| 2 |
|
| 3 |
-
|
| 4 |
-
|
| 5 |
import torch
|
| 6 |
import soundfile as sf
|
| 7 |
import os
|
|
@@ -121,7 +121,7 @@ def modelspeech(text=TXT, name_model="wasmdashai/vits-ar-sa-huba-v2", speaking_r
|
|
| 121 |
os.makedirs("audio_chunks", exist_ok=True)
|
| 122 |
model, tokenizer = get_model(name_model)
|
| 123 |
model.config.sampling_rate=16000
|
| 124 |
-
text = ask_ai(text)
|
| 125 |
inputs = tokenizer(text, return_tensors="pt").to(device)
|
| 126 |
|
| 127 |
|
|
|
|
| 1 |
|
| 2 |
|
| 3 |
+
|
| 4 |
+
import gradio as gr
|
| 5 |
import torch
|
| 6 |
import soundfile as sf
|
| 7 |
import os
|
|
|
|
| 121 |
os.makedirs("audio_chunks", exist_ok=True)
|
| 122 |
model, tokenizer = get_model(name_model)
|
| 123 |
model.config.sampling_rate=16000
|
| 124 |
+
#text = ask_ai(text)
|
| 125 |
inputs = tokenizer(text, return_tensors="pt").to(device)
|
| 126 |
|
| 127 |
|