ginipick commited on
Commit
a63a768
ยท
verified ยท
1 Parent(s): 7776a83

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -174,7 +174,7 @@ descriptions = (
174
  "We also maintain the HF model of BiRefNet at https://huggingface.co/ZhengPeng7/BiRefNet for easier access."
175
  )
176
 
177
- # ๊ฐœ์„ ๋œ UI ์Šคํƒ€์ผ (๋ฐฐ๊ฒฝ, ์ปจํ…Œ์ด๋„ˆ, ์ขŒ์ธก ์‚ฌ์ด๋“œ๋ฐ”, ๋ฒ„ํŠผ ์• ๋‹ˆ๋ฉ”์ด์…˜ ๋“ฑ)
178
  css = """
179
  body {
180
  background: linear-gradient(135deg, #667eea, #764ba2);
@@ -267,7 +267,7 @@ with gr.Blocks(css=css, title="BiRefNet Demo") as demo:
267
  weights_radio_batch = gr.Radio(list(usage_to_weights_file.keys()), value="General", label="Weights")
268
  predict_btn_batch = gr.Button("Predict")
269
  with gr.Column(scale=2):
270
- output_gallery = gr.Gallery(label="BiRefNet's Predictions").style(grid=[3], height="auto")
271
  zip_output = gr.File(label="Download Masked Images")
272
  gr.Examples(examples=examples_batch, inputs=[file_input, resolution_input_batch, weights_radio_batch], label="Examples")
273
  with gr.Row():
 
174
  "We also maintain the HF model of BiRefNet at https://huggingface.co/ZhengPeng7/BiRefNet for easier access."
175
  )
176
 
177
+ # UI ๊ฐœ์„ ์„ ์œ„ํ•œ CSS
178
  css = """
179
  body {
180
  background: linear-gradient(135deg, #667eea, #764ba2);
 
267
  weights_radio_batch = gr.Radio(list(usage_to_weights_file.keys()), value="General", label="Weights")
268
  predict_btn_batch = gr.Button("Predict")
269
  with gr.Column(scale=2):
270
+ output_gallery = gr.Gallery(label="BiRefNet's Predictions", scale=1)
271
  zip_output = gr.File(label="Download Masked Images")
272
  gr.Examples(examples=examples_batch, inputs=[file_input, resolution_input_batch, weights_radio_batch], label="Examples")
273
  with gr.Row():