tomaseo2022 commited on
Commit
12571c4
1 Parent(s): 0b2df8b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -8
app.py CHANGED
@@ -21,19 +21,19 @@ def enhance(file, brightness, contrast, saturation, gamma, hue):
21
 
22
 
23
 
24
- title = "Kornia Image Enhancements"
25
- description = "<p style='text-align: center'>This is a Gradio demo for Kornia's Image Enhancements.</p><p style='text-align: center'>To use it, simply upload your image, or click one of the examples to load them, and use the sliders to enhance! Read more at the links at the bottom.</p>"
26
- article = "<p style='text-align: center'><a href='https://kornia.readthedocs.io/en/latest/' target='_blank'>Kornia Docs</a> | <a href='https://github.com/kornia/kornia' target='_blank'>Kornia Github Repo</a> | <a href='https://kornia-tutorials.readthedocs.io/en/latest/image_enhancement.html' target='_blank'>Kornia Enhancements Tutorial</a></p>"
27
 
28
  iface = gr.Interface(
29
  enhance,
30
  [
31
  gr.inputs.Image(type="file"),
32
- gr.inputs.Slider(minimum=0, maximum=1, step=0.1, default=0, label="Brightness"),
33
- gr.inputs.Slider(minimum=0, maximum=4, step=0.1, default=1, label="Contrast"),
34
- gr.inputs.Slider(minimum=0, maximum=4, step=0.1, default=1, label="Saturation"),
35
- gr.inputs.Slider(minimum=0, maximum=1, step=0.1, default=1, label="Gamma"),
36
- gr.inputs.Slider(minimum=0, maximum=4, step=0.1, default=0, label="Hue"),
37
  ],
38
  "image",
39
  # title=title,
 
21
 
22
 
23
 
24
+ title = "Editar Imagen"
25
+ description = ""
26
+ article = ""
27
 
28
  iface = gr.Interface(
29
  enhance,
30
  [
31
  gr.inputs.Image(type="file"),
32
+ gr.inputs.Slider(minimum=0, maximum=1, step=0.1, default=0, label="Brillo"),
33
+ gr.inputs.Slider(minimum=0, maximum=4, step=0.1, default=1, label="Contraste"),
34
+ gr.inputs.Slider(minimum=0, maximum=4, step=0.1, default=1, label="Saturación"),
35
+ gr.inputs.Slider(minimum=0, maximum=1, step=0.1, default=1, label="Gama"),
36
+ gr.inputs.Slider(minimum=0, maximum=4, step=0.1, default=0, label="Tono"),
37
  ],
38
  "image",
39
  # title=title,