Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -184,18 +184,18 @@ with gr.Blocks(title=title,
|
|
184 |
scroll_to_output=True,
|
185 |
)
|
186 |
|
187 |
-
clear_btn.click(
|
188 |
-
|
189 |
-
|
190 |
-
|
191 |
-
|
192 |
-
|
193 |
-
|
194 |
-
|
195 |
-
|
196 |
-
|
197 |
-
|
198 |
-
|
199 |
-
)
|
200 |
|
201 |
demo.launch()
|
|
|
184 |
scroll_to_output=True,
|
185 |
)
|
186 |
|
187 |
+
# clear_btn.click(
|
188 |
+
# None,
|
189 |
+
# [],
|
190 |
+
# (input_components + output_components),
|
191 |
+
# _js=f"""() => {json.dumps(
|
192 |
+
# [component.cleared_value if hasattr(component, "cleared_value") else None
|
193 |
+
# for component in input_components + output_components] + (
|
194 |
+
# [gr.Column(visible=True)]
|
195 |
+
# )
|
196 |
+
# + ([gr.Column(visible=False)])
|
197 |
+
# )}
|
198 |
+
# """,
|
199 |
+
# )
|
200 |
|
201 |
demo.launch()
|