Spaces:
Running
on
Zero
Running
on
Zero
""" | |
File: clear.py | |
Author: Dmitry Ryumin, Maxim Markitantov, Elena Ryumina, Anastasia Dvoynikova, and Alexey Karpov | |
Description: Event handler for Gradio app to clear. | |
License: MIT License | |
""" | |
import gradio as gr | |
# Importing necessary components for the Gradio app | |
from app.config import config_data | |
from app.components import html_message | |
def event_handler_clear() -> ( | |
tuple[gr.Video, gr.Button, gr.Button, gr.HTML, gr.Plot, gr.Plot, gr.Plot, gr.Plot] | |
): | |
return ( | |
gr.Video(value=None), | |
gr.Button(interactive=False), | |
gr.Button(interactive=False), | |
html_message( | |
message=config_data.InformationMessages_NOTI_RESULTS[0], | |
error=True, | |
visible=True, | |
), | |
gr.Plot(value=None, visible=False), | |
gr.Plot(value=None, visible=False), | |
gr.Plot(value=None, visible=False), | |
gr.Plot(value=None, visible=False), | |
) | |