yukeshwaradse commited on
Commit
64e7bc1
·
verified ·
1 Parent(s): 76ae27b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -7
app.py CHANGED
@@ -79,15 +79,15 @@ def process_image(input_image, alpha, beta, clip_limit, gamma):
79
  interface = gr.Interface(
80
  fn=process_image,
81
  inputs=[
82
- gr.components.Image(type="numpy", label="Input Image"),
83
- gr.components.Slider(minimum=1.0, maximum=10.0, default=3.0, label="Alpha (Contrast)"),
84
- gr.components.Slider(minimum=0, maximum=100, default=20, label="Beta (Brightness)"),
85
- gr.components.Slider(minimum=1.0, maximum=15.0, default=10.0, label="CLAHE Clip Limit"),
86
- gr.components.Slider(minimum=0.1, maximum=10.0, default=1.5, label="Gamma Correction"),
87
  ],
88
  outputs=[
89
- gr.outputs.Image(type="numpy", label="Input Image"),
90
- gr.outputs.Image(type="numpy", label="Enhanced Image")
91
  ],
92
  title="Feeble Light Signal Image Enhancer",
93
  description="Upload a dark image, and enhance it using Retinex, CLAHE, contrast, brightness, and gamma correction."
 
79
  interface = gr.Interface(
80
  fn=process_image,
81
  inputs=[
82
+ gr.Image(type="numpy", label="Input Image"),
83
+ gr.Slider(minimum=1.0, maximum=10.0, value=3.0, label="Alpha (Contrast)"),
84
+ gr.Slider(minimum=0, maximum=100, value=20, label="Beta (Brightness)"),
85
+ gr.Slider(minimum=1.0, maximum=15.0, value=10.0, label="CLAHE Clip Limit"),
86
+ gr.Slider(minimum=0.1, maximum=10.0, value=1.5, label="Gamma Correction"),
87
  ],
88
  outputs=[
89
+ gr.Image(type="numpy", label="Input Image"),
90
+ gr.Image(type="numpy", label="Enhanced Image")
91
  ],
92
  title="Feeble Light Signal Image Enhancer",
93
  description="Upload a dark image, and enhance it using Retinex, CLAHE, contrast, brightness, and gamma correction."