jschwab21 commited on
Commit
5deaa7a
·
verified ·
1 Parent(s): 7b7fbb7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -4
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:", elem_id="video_file", interactive=True, file_types=["video"], type="binary")
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
- sentiment_plot = gr.Plot(label="Sentiment Distribution")
186
- submit_button.click(fn=display_results, inputs=[video_url, video_file, description], outputs=[video_output, download_output, sentiment_plot])
187
- demo.launch()
 
 
 
 
 
 
 
 
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()