Update app.py
Browse files
app.py
CHANGED
@@ -7,8 +7,8 @@ def triggered_by_clear_event(hidden_in):
|
|
7 |
with gr.Blocks() as demo:
|
8 |
with gr.Row():
|
9 |
with gr.Column():
|
10 |
-
audio_in = gr.Audio(label="Audio Component", source="microphone", type="filepath")
|
11 |
-
image_in = gr.Image(label="Image Component", source="upload", type="filepath")
|
12 |
hidden_in = gr.Textbox(value="HIDDEN TEXT", visible=False)
|
13 |
submit_btn : gr.Button("Submit")
|
14 |
result = gr.Textbox(label="Result")
|
|
|
7 |
with gr.Blocks() as demo:
|
8 |
with gr.Row():
|
9 |
with gr.Column():
|
10 |
+
audio_in = gr.Audio(label="Audio Component • clear event doesn't work", source="microphone", type="filepath")
|
11 |
+
image_in = gr.Image(label="Image Component • clear event works", source="upload", type="filepath")
|
12 |
hidden_in = gr.Textbox(value="HIDDEN TEXT", visible=False)
|
13 |
submit_btn : gr.Button("Submit")
|
14 |
result = gr.Textbox(label="Result")
|