fossbk commited on
Commit
5dccceb
·
verified ·
1 Parent(s): de21313

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
Files changed (1) hide show
  1. app.py +2 -2
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').style(height=360)
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').style(height=360)
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():