Spaces:
Runtime error
Runtime error
Upload app.py
Browse files
app.py
CHANGED
@@ -99,8 +99,8 @@ if __name__ == '__main__':
|
|
99 |
with app:
|
100 |
gr.Markdown("# Anime Face Crop")
|
101 |
with gr.Row():
|
102 |
-
input_img = gr.Image(label="input image")
|
103 |
-
output_img = gr.Image(label="result", image_mode="RGB"
|
104 |
with gr.Row():
|
105 |
crop_mode = gr.Dropdown([0, 1, 2, 3], label="Crop Mode", info="0:Auto; 1:No Scale; 2:Full Screen; 3:Fixed Face Ratio")
|
106 |
tgt_width = gr.Slider(10, 2048, value=512, label="Width")
|
|
|
99 |
with app:
|
100 |
gr.Markdown("# Anime Face Crop")
|
101 |
with gr.Row():
|
102 |
+
input_img = gr.Image(label="input image", image_mode="RGB", type='filepath')
|
103 |
+
output_img = gr.Image(label="result", image_mode="RGB")
|
104 |
with gr.Row():
|
105 |
crop_mode = gr.Dropdown([0, 1, 2, 3], label="Crop Mode", info="0:Auto; 1:No Scale; 2:Full Screen; 3:Fixed Face Ratio")
|
106 |
tgt_width = gr.Slider(10, 2048, value=512, label="Width")
|