Spaces:
Running
on
Zero
Running
on
Zero
| """ | |
| File: video.py | |
| Author: Dmitry Ryumin, Maxim Markitantov, Elena Ryumina, Anastasia Dvoynikova, and Alexey Karpov | |
| Description: Event handler for Gradio app to video. | |
| License: MIT License | |
| """ | |
| import gradio as gr | |
| # Importing necessary components for the Gradio app | |
| from app.config import config_data | |
| def event_handler_video(video: str) -> tuple[gr.Button, gr.Button, gr.Textbox]: | |
| is_video_valid = bool(video) | |
| return ( | |
| gr.Button(interactive=is_video_valid), | |
| gr.Button(interactive=is_video_valid), | |
| gr.Textbox( | |
| value=config_data.InformationMessages_NOTI_RESULTS[int(is_video_valid)], | |
| info=None, | |
| container=False, | |
| elem_classes="noti-results-" + str(is_video_valid).lower(), | |
| ), | |
| ) | |