Spaces:
Sleeping
Sleeping
Commit
·
deab7a8
1
Parent(s):
53cf646
fix interface
Browse files
app.py
CHANGED
@@ -303,22 +303,21 @@ def build_demo():
|
|
303 |
gr.Markdown(title_markdown)
|
304 |
|
305 |
with gr.Row():
|
306 |
-
|
307 |
-
|
308 |
-
|
309 |
-
|
310 |
-
|
311 |
-
|
312 |
-
|
313 |
-
|
314 |
-
|
315 |
-
|
316 |
-
|
317 |
-
|
318 |
-
|
319 |
-
|
320 |
-
|
321 |
-
# )
|
322 |
|
323 |
# # cur_dir = os.path.dirname(os.path.abspath(__file__))
|
324 |
# cur_dir = Path(__file__).parent
|
|
|
303 |
gr.Markdown(title_markdown)
|
304 |
|
305 |
with gr.Row():
|
306 |
+
with gr.Row(elem_id="Model ID"):
|
307 |
+
gr.Dropdown(
|
308 |
+
choices=[DEFAULT_MODEL_NAME],
|
309 |
+
value=DEFAULT_MODEL_NAME,
|
310 |
+
interactive=True,
|
311 |
+
label="Model ID",
|
312 |
+
container=False,
|
313 |
+
)
|
314 |
+
imagebox = gr.Image(type="pil")
|
315 |
+
image_process_mode = gr.Radio(
|
316 |
+
["Crop", "Resize", "Pad", "Default"],
|
317 |
+
value="Default",
|
318 |
+
label="Preprocess for non-square image",
|
319 |
+
visible=False,
|
320 |
+
)
|
|
|
321 |
|
322 |
# # cur_dir = os.path.dirname(os.path.abspath(__file__))
|
323 |
# cur_dir = Path(__file__).parent
|