Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -260,9 +260,9 @@ with gr.Blocks() as iface:
|
|
| 260 |
|
| 261 |
def update_visibility(choice):
|
| 262 |
if choice == "Audio":
|
| 263 |
-
return gr.update(value=None, visible=True), gr.update(visible=False), gr.update(visible=True), gr.update(visible=True), gr.update(visible=True), gr.update(visible=True)
|
| 264 |
elif choice == "Texte":
|
| 265 |
-
return gr.update(visible=False), gr.update(value="", visible=True), gr.update(visible=False), gr.update(visible=True), gr.update(visible=False), gr.update(visible=True)
|
| 266 |
else:
|
| 267 |
return gr.update(visible=False), gr.update(visible=False), gr.update(visible=False), gr.update(visible=False), gr.update(visible=False), gr.update(visible=False)
|
| 268 |
|
|
|
|
| 260 |
|
| 261 |
def update_visibility(choice):
|
| 262 |
if choice == "Audio":
|
| 263 |
+
return gr.update(value=None, visible=True), gr.update(visible=False), gr.update(visible=True), gr.update(visible=True), gr.update(visible=True), gr.update(value="", visible=True)
|
| 264 |
elif choice == "Texte":
|
| 265 |
+
return gr.update(visible=False), gr.update(value="", visible=True), gr.update(visible=False), gr.update(visible=True), gr.update(visible=False), gr.update(value="", visible=True)
|
| 266 |
else:
|
| 267 |
return gr.update(visible=False), gr.update(visible=False), gr.update(visible=False), gr.update(visible=False), gr.update(visible=False), gr.update(visible=False)
|
| 268 |
|