Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -42,8 +42,8 @@ if __name__ == '__main__':
|
|
42 |
ModelPath = "weights_v3/"
|
43 |
model_cache = {}
|
44 |
|
45 |
-
input_model_name = gr.
|
46 |
-
input_tile_mode = gr.
|
47 |
input_img = gr.inputs.Image(label='image', type='pil')
|
48 |
|
49 |
inputs = [input_img, input_model_name, input_tile_mode]
|
|
|
42 |
ModelPath = "weights_v3/"
|
43 |
model_cache = {}
|
44 |
|
45 |
+
input_model_name = gr.Dropdown(os.listdir(ModelPath), value="up2x-latest-denoise2x.pth", label='选择model')
|
46 |
+
input_tile_mode = gr.Dropdown([0, 1, 2, 3, 4], value=2, label='选择tile_mode')
|
47 |
input_img = gr.inputs.Image(label='image', type='pil')
|
48 |
|
49 |
inputs = [input_img, input_model_name, input_tile_mode]
|