Spaces:
Running
on
Zero
Running
on
Zero
Make the option of model and resolution available to both image and url inference tab.
Browse files
app.py
CHANGED
@@ -125,7 +125,7 @@ tab_text = gr.Interface(
|
|
125 |
gr.Textbox(label="Paste an image URL"),
|
126 |
gr.Textbox(lines=1, placeholder="Type the resolution (`WxH`) you want, e.g., `1024x1024`. Higher resolutions can be much slower for inference.", label="Resolution"),
|
127 |
gr.Radio(list(usage_to_weights_file.keys()), value='General', label="Weights", info="Choose the weights you want.")
|
128 |
-
]
|
129 |
outputs=ImageSlider(label="BiRefNet's prediction", type="pil"),
|
130 |
examples=["https://hips.hearstapps.com/hmg-prod/images/gettyimages-1229892983-square.jpg"],
|
131 |
api_name="text"
|
|
|
125 |
gr.Textbox(label="Paste an image URL"),
|
126 |
gr.Textbox(lines=1, placeholder="Type the resolution (`WxH`) you want, e.g., `1024x1024`. Higher resolutions can be much slower for inference.", label="Resolution"),
|
127 |
gr.Radio(list(usage_to_weights_file.keys()), value='General', label="Weights", info="Choose the weights you want.")
|
128 |
+
],
|
129 |
outputs=ImageSlider(label="BiRefNet's prediction", type="pil"),
|
130 |
examples=["https://hips.hearstapps.com/hmg-prod/images/gettyimages-1229892983-square.jpg"],
|
131 |
api_name="text"
|