Spaces:
Running
on
Zero
Running
on
Zero
File size: 723 Bytes
f16bb9f |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
"""
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
from app.components import html_message
def event_handler_video(video: str) -> gr.HTML:
is_video_valid = bool(video)
return (
gr.Button(interactive=is_video_valid),
gr.Button(interactive=is_video_valid),
html_message(
message=config_data.InformationMessages_NOTI_RESULTS[int(is_video_valid)],
error=not is_video_valid,
visible=True,
),
)
|