Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Commit
•
10efffb
1
Parent(s):
f564711
bugfix from mobile :)
Browse files
app.py
CHANGED
@@ -628,6 +628,10 @@ def synthandreturn(text):
|
|
628 |
# print(sr)
|
629 |
#debug
|
630 |
# outputs = [text, btn, r2, model1, model2, aud1, aud2, abetter, bbetter, prevmodel1, prevmodel2, nxtroundbtn]
|
|
|
|
|
|
|
|
|
631 |
|
632 |
return (
|
633 |
text,
|
@@ -635,8 +639,8 @@ def synthandreturn(text):
|
|
635 |
gr.update(visible=True), # r2
|
636 |
mdl1, # model1
|
637 |
mdl2, # model2
|
638 |
-
gr.update(visible=True, value=results[
|
639 |
-
gr.update(visible=True, value=results[
|
640 |
gr.update(visible=True, interactive=False), #abetter
|
641 |
gr.update(visible=True, interactive=False), #bbetter
|
642 |
gr.update(visible=False), #prevmodel1
|
|
|
628 |
# print(sr)
|
629 |
#debug
|
630 |
# outputs = [text, btn, r2, model1, model2, aud1, aud2, abetter, bbetter, prevmodel1, prevmodel2, nxtroundbtn]
|
631 |
+
mdl1k = mdl1
|
632 |
+
mdl2k = mdl2
|
633 |
+
if mdl1 in AVAILABLE_MODELS.keys(): mdl1k=AVAILABLE_MODELS[mdl1]
|
634 |
+
if mdl2 in AVAILABLE_MODELS.keys(): mdl2k=AVAILABLE_MODELS[mdl2]
|
635 |
|
636 |
return (
|
637 |
text,
|
|
|
639 |
gr.update(visible=True), # r2
|
640 |
mdl1, # model1
|
641 |
mdl2, # model2
|
642 |
+
gr.update(visible=True, value=results[mdl1k]), # aud1
|
643 |
+
gr.update(visible=True, value=results[mdl2k]), # aud2
|
644 |
gr.update(visible=True, interactive=False), #abetter
|
645 |
gr.update(visible=True, interactive=False), #bbetter
|
646 |
gr.update(visible=False), #prevmodel1
|