155elkhorn commited on
Commit
eeb03e9
·
1 Parent(s): ce3eb76

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -2
app.py CHANGED
@@ -66,10 +66,13 @@ iface = gr.Interface(
66
  gr.inputs.Slider(minimum=0, maximum=100, step=10, default=0, label="Crop Top (%)"),
67
  gr.inputs.Slider(minimum=0, maximum=100, step=10, default=0, label="Crop Bottom (%)")
68
  ],
69
- outputs=[gr.outputs.Image(type="numpy", label="Result"), gr.outputs.Text(label="Image Info")],
 
 
 
70
  title="Image Resizer",
71
  description="Reduce the size of an image, overlay it on a colored background, shift it, and crop the top and/or bottom as a percentage."
72
  )
73
 
74
  if __name__ == "__main__":
75
- iface.launch()
 
66
  gr.inputs.Slider(minimum=0, maximum=100, step=10, default=0, label="Crop Top (%)"),
67
  gr.inputs.Slider(minimum=0, maximum=100, step=10, default=0, label="Crop Bottom (%)")
68
  ],
69
+ outputs=[
70
+ gr.outputs.Image(type="numpy", label="Result"),
71
+ gr.outputs.Textbox(label="Image Info")
72
+ ],
73
  title="Image Resizer",
74
  description="Reduce the size of an image, overlay it on a colored background, shift it, and crop the top and/or bottom as a percentage."
75
  )
76
 
77
  if __name__ == "__main__":
78
+ iface.launch()