Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -55,17 +55,40 @@ def display_results(video_url, description):
|
|
55 |
return final_clip_path, final_clip_path
|
56 |
return "No matching scene found", None
|
57 |
|
58 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
59 |
with gr.Column():
|
60 |
gr.Markdown("# Sickstadium AI", elem_classes="centered-markdown")
|
61 |
gr.Markdown("### This is a brief description for the webpage.", elem_classes="centered-markdown")
|
62 |
-
|
63 |
-
gr.
|
64 |
-
video_url = gr.Textbox(label="", elem_id="video_url")
|
65 |
-
|
66 |
-
gr.Markdown("### <span style='color:#eb5726'>Description of desired clip</span>", elem_classes="centered-markdown")
|
67 |
-
description = gr.Textbox(label="", elem_id="description")
|
68 |
-
|
69 |
submit_button = gr.Button("Process Video", elem_id="submit_button")
|
70 |
video_output = gr.Video(label="Processed Video", elem_id="video_output")
|
71 |
download_output = gr.File(label="Download Processed Video", elem_id="download_output")
|
|
|
55 |
return final_clip_path, final_clip_path
|
56 |
return "No matching scene found", None
|
57 |
|
58 |
+
# Custom CSS for additional styling
|
59 |
+
css = """
|
60 |
+
#video_url {
|
61 |
+
background-color: #ffffff;
|
62 |
+
color: #282828;
|
63 |
+
border: 2px solid #eb5726;
|
64 |
+
}
|
65 |
+
#description {
|
66 |
+
background-color: #ffffff;
|
67 |
+
color: #282828;
|
68 |
+
border: 2px solid #eb5726;
|
69 |
+
}
|
70 |
+
#submit_button {
|
71 |
+
background-color: #eb5726;
|
72 |
+
color: #ffffff;
|
73 |
+
border: 2px solid #ffffff;
|
74 |
+
}
|
75 |
+
label[for="video_url"] {
|
76 |
+
color: #eb5726 !important;
|
77 |
+
}
|
78 |
+
label[for="description"] {
|
79 |
+
color: #eb5726 !important;
|
80 |
+
}
|
81 |
+
.centered-markdown {
|
82 |
+
text-align: center;
|
83 |
+
}
|
84 |
+
"""
|
85 |
+
|
86 |
+
with gr.Blocks(theme=custom_theme, css=css) as demo:
|
87 |
with gr.Column():
|
88 |
gr.Markdown("# Sickstadium AI", elem_classes="centered-markdown")
|
89 |
gr.Markdown("### This is a brief description for the webpage.", elem_classes="centered-markdown")
|
90 |
+
video_url = gr.Textbox(label="Video URL or Filepath", elem_id="video_url")
|
91 |
+
description = gr.Textbox(label="Description of desired clip", elem_id="description")
|
|
|
|
|
|
|
|
|
|
|
92 |
submit_button = gr.Button("Process Video", elem_id="submit_button")
|
93 |
video_output = gr.Video(label="Processed Video", elem_id="video_output")
|
94 |
download_output = gr.File(label="Download Processed Video", elem_id="download_output")
|