danielsapit commited on
Commit
eb456f3
1 Parent(s): bc5914e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +15 -8
app.py CHANGED
@@ -116,20 +116,27 @@ interface = gr.Interface(
116
  inputs = [gr.inputs.Image(),
117
  gr.inputs.Checkbox(label="Grayscale (Check this if your image is grayscale)"),
118
  gr.inputs.Slider(minimum=1, maximum=100, step=1, label="Intensity (Higher = more JPEG artifact removal)"),
119
- gr.inputs.Checkbox(default=False, label="Edit Zoom preview \nThis is optional. "
120
  "Check this after the image result is loaded to edit zoom parameters\n"
121
- "without processing the input image."),
122
  gr.inputs.Slider(minimum=10, maximum=100, step=1, default=50, label="Zoom Image \n"
123
- "Use this to see the image quality up close \n"
124
- "100 = original size"),
125
  gr.inputs.Slider(minimum=0, maximum=100, step=1, label="Zoom preview horizontal shift \n"
126
- "Increase to shift to the right"),
127
  gr.inputs.Slider(minimum=0, maximum=100, step=1, label="Zoom preview vertical shift \n"
128
- "Increase to shift downwards"),
129
  gr.inputs.State(default=[None,None])
130
  ],
131
  outputs = [gr.outputs.Image(label="Result"),
132
  gr.outputs.Image(label="Before:"),
133
  gr.outputs.Image(label="After:"),
134
- "state"]
135
- ).launch(enable_queue=True,cache_examples=True)
 
 
 
 
 
 
 
 
116
  inputs = [gr.inputs.Image(),
117
  gr.inputs.Checkbox(label="Grayscale (Check this if your image is grayscale)"),
118
  gr.inputs.Slider(minimum=1, maximum=100, step=1, label="Intensity (Higher = more JPEG artifact removal)"),
119
+ gr.inputs.Checkbox(default=False, label="Edit Zoom preview \n(This is optional. "
120
  "Check this after the image result is loaded to edit zoom parameters\n"
121
+ "without processing the input image.)"),
122
  gr.inputs.Slider(minimum=10, maximum=100, step=1, default=50, label="Zoom Image \n"
123
+ "(Use this to see the image quality up close. \n"
124
+ "100 = original size)"),
125
  gr.inputs.Slider(minimum=0, maximum=100, step=1, label="Zoom preview horizontal shift \n"
126
+ "(Increase to shift to the right)"),
127
  gr.inputs.Slider(minimum=0, maximum=100, step=1, label="Zoom preview vertical shift \n"
128
+ "(Increase to shift downwards)"),
129
  gr.inputs.State(default=[None,None])
130
  ],
131
  outputs = [gr.outputs.Image(label="Result"),
132
  gr.outputs.Image(label="Before:"),
133
  gr.outputs.Image(label="After:"),
134
+ "state"],
135
+ examples = [["doraemon.jpg",False,60,False,42,50,50],
136
+ ["tomandjerry.jpg",False,60,False,40,57,44],
137
+ ["somepanda.jpg",True,100,False,30,8,24],
138
+ ["cemetry.jpg",False,70,False,20,44,77],
139
+ ["michelangelo_david.jpg",True,30,False,12,53,27],
140
+ ["elon_musk.jpg",False,45,False,15,33,30]],
141
+ allow_flagging=False
142
+ ).launch(enable_queue=True)