Update app.py
Browse files
app.py
CHANGED
|
@@ -173,10 +173,16 @@ def infer(video_in):
|
|
| 173 |
|
| 174 |
return video_description_from_llm
|
| 175 |
|
| 176 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 177 |
with gr.Column(elem_id="col-container"):
|
| 178 |
gr.HTML("""
|
| 179 |
-
<h2 style="text-align: center;">
|
| 180 |
""")
|
| 181 |
video_in = gr.Video(label="Video input")
|
| 182 |
submit_btn = gr.Button("Submit")
|
|
|
|
| 173 |
|
| 174 |
return video_description_from_llm
|
| 175 |
|
| 176 |
+
css = """
|
| 177 |
+
div#col-container{
|
| 178 |
+
margin: 0 auto;
|
| 179 |
+
max-width: 720px;
|
| 180 |
+
}
|
| 181 |
+
"""
|
| 182 |
+
with gr.Blocks(css=css) as demo :
|
| 183 |
with gr.Column(elem_id="col-container"):
|
| 184 |
gr.HTML("""
|
| 185 |
+
<h2 style="text-align: center;">Soft video understanding</h2>
|
| 186 |
""")
|
| 187 |
video_in = gr.Video(label="Video input")
|
| 188 |
submit_btn = gr.Button("Submit")
|