jschwab21 commited on
Commit
5d5059e
·
verified ·
1 Parent(s): 0df108b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +35 -11
app.py CHANGED
@@ -14,23 +14,39 @@ body {
14
  color: #ffffff;
15
  font-family: 'Arial', sans-serif;
16
  }
17
- h1, h2, h3, h4, h5, h6 {
18
  color: #282828;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
19
  }
20
  #video_url {
21
  background-color: #eb5726;
22
  color: #ecf0f1;
23
- border: 1px solid #ecf0f1;
24
  }
25
  #description {
26
  background-color: #ecf0f1;
27
  color: #eb5726;
28
- border: 1px solid #eb5726;
29
  }
30
  #submit_button {
31
  background-color: #ffffff;
32
  color: #F06230;
33
- border: 1px solid #F06230;
34
  }
35
  #submit_button:hover {
36
  background-color: #c0392b;
@@ -38,15 +54,23 @@ h1, h2, h3, h4, h5, h6 {
38
  #video_output, #download_output {
39
  border: 1px solid #eb5726;
40
  }
 
 
 
 
 
 
 
41
  """
42
 
43
  with gr.Blocks(css=css) as demo:
44
- gr.Markdown("# Sickstadium AI")
45
- video_url = gr.Textbox(label="Video URL or Filepath", elem_id="video_url")
46
- description = gr.Textbox(label="Description of desired clip", elem_id="description")
47
- video_output = gr.Video(label="Processed Video", elem_id="video_output")
48
- download_output = gr.File(label="Download Processed Video", elem_id="download_output")
49
- submit_button = gr.Button("Process Video", elem_id="submit_button")
50
- submit_button.click(fn=display_results, inputs=[video_url, description], outputs=[video_output, download_output])
 
51
 
52
  demo.launch()
 
14
  color: #ffffff;
15
  font-family: 'Arial', sans-serif;
16
  }
17
+ h1 {
18
  color: #282828;
19
+ text-align: center;
20
+ }
21
+ h2 {
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;
35
  }
36
  #video_url {
37
  background-color: #eb5726;
38
  color: #ecf0f1;
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 {
52
  background-color: #c0392b;
 
54
  #video_output, #download_output {
55
  border: 1px solid #eb5726;
56
  }
57
+ .centered-markdown {
58
+ display: flex;
59
+ justify-content: center;
60
+ align-items: center;
61
+ text-align: center;
62
+ width: 100%;
63
+ }
64
  """
65
 
66
  with gr.Blocks(css=css) as demo:
67
+ with gr.Column():
68
+ gr.Markdown("# Sickstadium AI", elem_classes="centered-markdown")
69
+ video_url = gr.Textbox(label="Video URL or Filepath", elem_id="video_url")
70
+ description = gr.Textbox(label="Description of desired clip", elem_id="description")
71
+ submit_button = gr.Button("Process Video", elem_id="submit_button")
72
+ video_output = gr.Video(label="Processed Video", elem_id="video_output")
73
+ download_output = gr.File(label="Download Processed Video", elem_id="download_output")
74
+ submit_button.click(fn=display_results, inputs=[video_url, description], outputs=[video_output, download_output])
75
 
76
  demo.launch()