clementchadebec commited on
Commit
b132437
1 Parent(s): ff771b6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +24 -4
app.py CHANGED
@@ -81,7 +81,7 @@ def process_input(input_image, upscale_factor, **kwargs):
81
  return input_image.resize((w, h)), w_original, h_original, was_resized
82
 
83
 
84
- @spaces.GPU(duration=75)
85
  def infer(
86
  seed,
87
  randomize_seed,
@@ -184,10 +184,10 @@ with gr.Blocks(css=css) as demo:
184
  examples = gr.Examples(
185
  examples=[
186
  [42, False, "examples/image_1.jpg", 28, 4, 0.6],
187
- [42, False, "examples/image_2.jpg", 28, 4, 0.6],
188
- [42, False, "examples/image_3.jpg", 28, 4, 0.6],
189
  [42, False, "examples/image_4.jpg", 28, 4, 0.6],
190
- [42, False, "examples/image_5.jpg", 28, 4, 0.6],
191
  [42, False, "examples/image_6.jpg", 28, 4, 0.6],
192
  ],
193
  inputs=[
@@ -203,6 +203,26 @@ with gr.Blocks(css=css) as demo:
203
  cache_examples=True,
204
  )
205
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
206
  gr.Markdown("**Disclaimer:**")
207
  gr.Markdown(
208
  "This demo is only for research purpose. Jasper cannot be held responsible for the generation of NSFW (Not Safe For Work) content through the use of this demo. Users are solely responsible for any content they create, and it is their obligation to ensure that it adheres to appropriate and ethical standards. Jasper provides the tools, but the responsibility for their use lies with the individual user."
 
81
  return input_image.resize((w, h)), w_original, h_original, was_resized
82
 
83
 
84
+ @spaces.GPU(duration=42)
85
  def infer(
86
  seed,
87
  randomize_seed,
 
184
  examples = gr.Examples(
185
  examples=[
186
  [42, False, "examples/image_1.jpg", 28, 4, 0.6],
187
+ #[42, False, "examples/image_2.jpg", 28, 4, 0.6],
188
+ #[42, False, "examples/image_3.jpg", 28, 4, 0.6],
189
  [42, False, "examples/image_4.jpg", 28, 4, 0.6],
190
+ #[42, False, "examples/image_5.jpg", 28, 4, 0.6],
191
  [42, False, "examples/image_6.jpg", 28, 4, 0.6],
192
  ],
193
  inputs=[
 
203
  cache_examples=True,
204
  )
205
 
206
+ examples = gr.Examples(
207
+ examples=[
208
+ #[42, False, "examples/image_1.jpg", 28, 4, 0.6],
209
+ [42, False, "examples/image_2.jpg", 28, 4, 0.6],
210
+ [42, False, "examples/image_3.jpg", 28, 4, 0.6],
211
+ #[42, False, "examples/image_4.jpg", 28, 4, 0.6],
212
+ [42, False, "examples/image_5.jpg", 28, 4, 0.6],
213
+ #[42, False, "examples/image_6.jpg", 28, 4, 0.6],
214
+ [42, False, "examples/image_7.jpg", 28, 4, 0.6],
215
+ ],
216
+ inputs=[
217
+ seed,
218
+ randomize_seed,
219
+ input_im,
220
+ num_inference_steps,
221
+ upscale_factor,
222
+ controlnet_conditioning_scale,
223
+ ],
224
+ )
225
+
226
  gr.Markdown("**Disclaimer:**")
227
  gr.Markdown(
228
  "This demo is only for research purpose. Jasper cannot be held responsible for the generation of NSFW (Not Safe For Work) content through the use of this demo. Users are solely responsible for any content they create, and it is their obligation to ensure that it adheres to appropriate and ethical standards. Jasper provides the tools, but the responsibility for their use lies with the individual user."