Gradio mới không sử dụng style() nữa, trực tiếp chỉ định các thuộc tính như height, width
Browse files
app.py
CHANGED
|
@@ -134,7 +134,7 @@ with demo:
|
|
| 134 |
with gr.Row(): # Replace gr.Box() with gr.Row()
|
| 135 |
with gr.Column(): # Inside a column layout
|
| 136 |
with gr.Row(): # For individual row layout within a column
|
| 137 |
-
input_video = gr.Video(label='Input Video'
|
| 138 |
with gr.Row():
|
| 139 |
submit_video_button = gr.Button('Submit')
|
| 140 |
with gr.Column():
|
|
@@ -146,7 +146,7 @@ with demo:
|
|
| 146 |
with gr.Row(): # Replace gr.Box() with gr.Row()
|
| 147 |
with gr.Column(): # Inside a column layout
|
| 148 |
with gr.Row():
|
| 149 |
-
input_image = gr.Image(label='Input Image', type='pil'
|
| 150 |
with gr.Row():
|
| 151 |
submit_image_button = gr.Button('Submit')
|
| 152 |
with gr.Column():
|
|
|
|
| 134 |
with gr.Row(): # Replace gr.Box() with gr.Row()
|
| 135 |
with gr.Column(): # Inside a column layout
|
| 136 |
with gr.Row(): # For individual row layout within a column
|
| 137 |
+
input_video = gr.Video(label='Input Video', height=360) # Use height attribute instead of style
|
| 138 |
with gr.Row():
|
| 139 |
submit_video_button = gr.Button('Submit')
|
| 140 |
with gr.Column():
|
|
|
|
| 146 |
with gr.Row(): # Replace gr.Box() with gr.Row()
|
| 147 |
with gr.Column(): # Inside a column layout
|
| 148 |
with gr.Row():
|
| 149 |
+
input_image = gr.Image(label='Input Image', type='pil', height=360) # Use height attribute instead of style
|
| 150 |
with gr.Row():
|
| 151 |
submit_image_button = gr.Button('Submit')
|
| 152 |
with gr.Column():
|