Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -33,8 +33,8 @@ files = {}
|
|
33 |
logging.basicConfig(level=logging.DEBUG)
|
34 |
# Mock data for your interface
|
35 |
data = {
|
36 |
-
"speaker_options": ["
|
37 |
-
"default_speaker": "
|
38 |
}
|
39 |
@app.get("/", response_class=HTMLResponse)
|
40 |
async def read_root(request: Request):
|
@@ -132,11 +132,12 @@ async def main(
|
|
132 |
sess_options = onnxruntime.SessionOptions()
|
133 |
model = None
|
134 |
onnx_models = detect_onnx_models(models_path)
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
|
|
|
140 |
if onnx_models is None:
|
141 |
if enhanced_accessibility:
|
142 |
playaudio("novoices")
|
|
|
33 |
logging.basicConfig(level=logging.DEBUG)
|
34 |
# Mock data for your interface
|
35 |
data = {
|
36 |
+
"speaker_options": ["en", "es", "de", "pl"],
|
37 |
+
"default_speaker": "en",
|
38 |
}
|
39 |
@app.get("/", response_class=HTMLResponse)
|
40 |
async def read_root(request: Request):
|
|
|
132 |
sess_options = onnxruntime.SessionOptions()
|
133 |
model = None
|
134 |
onnx_models = detect_onnx_models(models_path)
|
135 |
+
lan.load_language(speaker)
|
136 |
+
# speaker_selection = widgets.Dropdown(
|
137 |
+
# options=[],
|
138 |
+
# description=f'{lan.translate(lang, "Select speaker")}:',
|
139 |
+
# layout={'visibility': 'hidden'}
|
140 |
+
# )
|
141 |
if onnx_models is None:
|
142 |
if enhanced_accessibility:
|
143 |
playaudio("novoices")
|