Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -177,11 +177,20 @@ def create_radial_plot(sentiments):
|
|
177 |
with gr.Blocks(theme=custom_theme, css=css) as demo:
|
178 |
with gr.Column():
|
179 |
gr.Markdown("# **Sickstadium AI**", elem_classes="centered-markdown", elem_id="sickstadium-title")
|
|
|
|
|
180 |
video_url = gr.Textbox(label="Video URL:", elem_id="video_url")
|
181 |
-
video_file = gr.File(label="Upload Video File:",
|
182 |
description = gr.Textbox(label="Describe your clip:", elem_id="description")
|
183 |
submit_button = gr.Button("Process Video", elem_id="submit_button")
|
184 |
video_output = gr.Video(label="Processed Video", elem_id="video_output")
|
185 |
-
|
186 |
-
|
187 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
177 |
with gr.Blocks(theme=custom_theme, css=css) as demo:
|
178 |
with gr.Column():
|
179 |
gr.Markdown("# **Sickstadium AI**", elem_classes="centered-markdown", elem_id="sickstadium-title")
|
180 |
+
gr.Markdown("### Upload your videos. Find sick clips. Tell your truth.", elem_classes="centered-markdown")
|
181 |
+
gr.Markdown("**Welcome to Sickstadium AI. Our goal is to empower content creators with the ability to tell their stories without the friction of traditional video editing software. Skip the timeline, and don't worry about your video editing skills. Upload your video, describe the clip you want, and let our AI video editor do the work for you. Get more info about the Sickstadium project at [Strongholdlabs.io](https://strongholdlabs.io/)**", elem_classes="centered-markdown")
|
182 |
video_url = gr.Textbox(label="Video URL:", elem_id="video_url")
|
183 |
+
video_file = gr.File(label="Upload Video File:", interactive=True, file_types=["video"], type="binary")
|
184 |
description = gr.Textbox(label="Describe your clip:", elem_id="description")
|
185 |
submit_button = gr.Button("Process Video", elem_id="submit_button")
|
186 |
video_output = gr.Video(label="Processed Video", elem_id="video_output")
|
187 |
+
download_output = gr.File(label="Download Processed Video", elem_id="download_output", type="file") # Define this here
|
188 |
+
sentiment_plot = gr.Plot(label="Sentiment Distribution", elem_id="sentiment_plot") # Adding elem_id for clarity
|
189 |
+
|
190 |
+
submit_button.click(
|
191 |
+
fn=display_results,
|
192 |
+
inputs=[video_url, video_file, description],
|
193 |
+
outputs=[video_output, download_output, sentiment_plot]
|
194 |
+
)
|
195 |
+
|
196 |
+
demo.launch()
|