Spaces:
Build error
Build error
Update app.py
Browse files
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 |
-
#
|
| 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"
|
| 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():
|