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():