Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -22,13 +22,13 @@ h2 {
|
|
22 |
color: #eb5726;
|
23 |
}
|
24 |
h3 {
|
25 |
-
color: #
|
26 |
}
|
27 |
h4 {
|
28 |
color: #eb5726;
|
29 |
}
|
30 |
h5 {
|
31 |
-
color: #
|
32 |
}
|
33 |
h6 {
|
34 |
color: #eb5726;
|
@@ -37,20 +37,15 @@ h6 {
|
|
37 |
background-color: #eb5726;
|
38 |
color: #ffffff;
|
39 |
border: 2px solid #ecf0f1;
|
40 |
-
label: #ffffff
|
41 |
}
|
42 |
-
|
43 |
-
color: #ffffff;
|
44 |
-
}
|
45 |
-
#description{
|
46 |
background-color: #ecf0f1;
|
47 |
-
color: #
|
48 |
border: 2px solid #eb5726;
|
49 |
}
|
50 |
-
|
51 |
#submit_button {
|
52 |
background-color: #ffffff;
|
53 |
-
color: #
|
54 |
border: 2px solid #eb5726;
|
55 |
}
|
56 |
#submit_button:hover {
|
@@ -66,23 +61,23 @@ label[for^="video_url"] {
|
|
66 |
text-align: center;
|
67 |
width: 100%;
|
68 |
}
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
}
|
75 |
"""
|
76 |
|
77 |
with gr.Blocks(css=css) as demo:
|
78 |
with gr.Column():
|
79 |
gr.Markdown("# Sickstadium AI", elem_classes="centered-markdown")
|
80 |
-
gr.Markdown("###
|
81 |
video_url = gr.Textbox(label="Video URL or Filepath", elem_id="video_url")
|
82 |
-
description = gr.Textbox(label="
|
83 |
submit_button = gr.Button("Process Video", elem_id="submit_button")
|
84 |
video_output = gr.Video(label="Processed Video", elem_id="video_output")
|
85 |
download_output = gr.File(label="Download Processed Video", elem_id="download_output")
|
86 |
submit_button.click(fn=display_results, inputs=[video_url, description], outputs=[video_output, download_output])
|
|
|
87 |
|
88 |
demo.launch()
|
|
|
22 |
color: #eb5726;
|
23 |
}
|
24 |
h3 {
|
25 |
+
color: #ffffff;
|
26 |
}
|
27 |
h4 {
|
28 |
color: #eb5726;
|
29 |
}
|
30 |
h5 {
|
31 |
+
color: #282828;
|
32 |
}
|
33 |
h6 {
|
34 |
color: #eb5726;
|
|
|
37 |
background-color: #eb5726;
|
38 |
color: #ffffff;
|
39 |
border: 2px solid #ecf0f1;
|
|
|
40 |
}
|
41 |
+
#description {
|
|
|
|
|
|
|
42 |
background-color: #ecf0f1;
|
43 |
+
color: #eb5726;
|
44 |
border: 2px solid #eb5726;
|
45 |
}
|
|
|
46 |
#submit_button {
|
47 |
background-color: #ffffff;
|
48 |
+
color: #F06230;
|
49 |
border: 2px solid #eb5726;
|
50 |
}
|
51 |
#submit_button:hover {
|
|
|
61 |
text-align: center;
|
62 |
width: 100%;
|
63 |
}
|
64 |
+
"""
|
65 |
+
|
66 |
+
js = """
|
67 |
+
document.querySelector('label[for="video_url"]').style.color = '#ffffff';
|
68 |
+
document.querySelector('label[for="description"]').style.color = '#eb5726';
|
|
|
69 |
"""
|
70 |
|
71 |
with gr.Blocks(css=css) as demo:
|
72 |
with gr.Column():
|
73 |
gr.Markdown("# Sickstadium AI", elem_classes="centered-markdown")
|
74 |
+
gr.Markdown("### This is a brief description for the webpage.", elem_classes="centered-markdown")
|
75 |
video_url = gr.Textbox(label="Video URL or Filepath", elem_id="video_url")
|
76 |
+
description = gr.Textbox(label="Description of desired clip", elem_id="description")
|
77 |
submit_button = gr.Button("Process Video", elem_id="submit_button")
|
78 |
video_output = gr.Video(label="Processed Video", elem_id="video_output")
|
79 |
download_output = gr.File(label="Download Processed Video", elem_id="download_output")
|
80 |
submit_button.click(fn=display_results, inputs=[video_url, description], outputs=[video_output, download_output])
|
81 |
+
gr.HTML(f"<script>{js}</script>")
|
82 |
|
83 |
demo.launch()
|