jschwab21 commited on
Commit
a0a7498
·
verified ·
1 Parent(s): c200bba

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -4
app.py CHANGED
@@ -36,7 +36,8 @@ class CustomTheme(Base):
36
  font_mono=font_mono,
37
  )
38
  super().set(
39
- body_background_fill="radial-gradient(circle at center, rgba(235, 87, 38, 1), rgba(235, 87, 38, 0.9) 10%, rgba(235, 87, 38, 0.8) 20%, rgba(235, 87, 38, 0.7) 30%, rgba(235, 87, 38, 0.6) 40%, rgba(235, 87, 38, 0.5) 50%, rgba(235, 87, 38, 0.4) 60%, rgba(235, 87, 38, 0.3) 70%, rgba(235, 87, 38, 0.2) 80%, rgba(235, 87, 38, 0.1) 90%, rgba(255, 255, 255, 0) 100%), #ffffff",
 
40
  body_text_color="#282828",
41
  block_background_fill="#ffffff",
42
  block_title_text_color="#eb5726",
@@ -59,7 +60,8 @@ def display_results(video_url, description):
59
  css = """
60
  body {
61
  background-color: #ffffff;
62
- background-image: radial-gradient(circle at center, rgba(235, 87, 38, 1), rgba(235, 87, 38, 0.9) 10%, rgba(235, 87, 38, 0.8) 20%, rgba(235, 87, 38, 0.7) 30%, rgba(235, 87, 38, 0.6) 40%, rgba(235, 87, 38, 0.5) 50%, rgba(235, 87, 38, 0.4) 60%, rgba(235, 87, 38, 0.3) 70%, rgba(235, 87, 38, 0.2) 80%, rgba(235, 87, 38, 0.1) 90%, rgba(255, 255, 255, 0) 100%);
 
63
  }
64
  #video_url {
65
  background-color: #ffffff;
@@ -101,8 +103,8 @@ with gr.Blocks(theme=custom_theme, css=css) as demo:
101
  gr.Markdown("# **Sickstadium AI**", elem_classes="centered-markdown", elem_id="sickstadium-title")
102
  gr.Markdown("### Upload your videos. Find sick clips. Tell your truth.", elem_classes="centered-markdown")
103
  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 experience in video editing. Upload your video, explain 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**", elem_classes="centered-markdown")
104
- video_url = gr.Textbox(label="Video URL:", elem_id="video_url")
105
- description = gr.Textbox(label="Describe your clip:", elem_id="description")
106
  submit_button = gr.Button("Process Video", elem_id="submit_button")
107
  video_output = gr.Video(label="Processed Video", elem_id="video_output")
108
  download_output = gr.File(label="Download Processed Video", elem_id="download_output")
 
36
  font_mono=font_mono,
37
  )
38
  super().set(
39
+ body_background_fill="radial-gradient(circle at center, rgba(235, 87, 38, 1), rgba(235, 87, 38, 0.9) 10%, rgba(235, 87, 38, 0.8) 20%, rgba(235, 87, 38, 0.7) 30%, rgba(235, 87, 38, 0.6) 40%, rgba(235, 87, 38, 0.5) 50%, rgba(235, 87, 38, 0.4) 60%, rgba(235, 87, 38, 0.3) 70%, rgba(235, 87, 38, 0.2) 80%, rgba(235, 87, 38, 0.1) 90%, rgba(255, 255, 255, 0) 100%), radial-gradient(#eb5726 1px, transparent 1px)",
40
+ body_background_size="10px 10px, 100% 100%",
41
  body_text_color="#282828",
42
  block_background_fill="#ffffff",
43
  block_title_text_color="#eb5726",
 
60
  css = """
61
  body {
62
  background-color: #ffffff;
63
+ background-image: radial-gradient(circle at center, rgba(235, 87, 38, 1), rgba(235, 87, 38, 0.9) 10%, rgba(235, 87, 38, 0.8) 20%, rgba(235, 87, 38, 0.7) 30%, rgba(235, 87, 38, 0.6) 40%, rgba(235, 87, 38, 0.5) 50%, rgba(235, 87, 38, 0.4) 60%, rgba(235, 87, 38, 0.3) 70%, rgba(235, 87, 38, 0.2) 80%, rgba(235, 87, 38, 0.1) 90%, rgba(255, 255, 255, 0) 100%), radial-gradient(#eb5726 1px, transparent 1px);
64
+ background-size: 10px 10px, 100% 100%;
65
  }
66
  #video_url {
67
  background-color: #ffffff;
 
103
  gr.Markdown("# **Sickstadium AI**", elem_classes="centered-markdown", elem_id="sickstadium-title")
104
  gr.Markdown("### Upload your videos. Find sick clips. Tell your truth.", elem_classes="centered-markdown")
105
  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 experience in video editing. Upload your video, explain 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**", elem_classes="centered-markdown")
106
+ video_url = gr.Textbox(label="Video URL or Filepath", elem_id="video_url")
107
+ description = gr.Textbox(label="Description of desired clip", elem_id="description")
108
  submit_button = gr.Button("Process Video", elem_id="submit_button")
109
  video_output = gr.Video(label="Processed Video", elem_id="video_output")
110
  download_output = gr.File(label="Download Processed Video", elem_id="download_output")