Fabrice-TIERCELIN commited on
Commit
ceaaae8
1 Parent(s): ef77056

Fix downscale

Browse files
Files changed (1) hide show
  1. app.py +11 -11
app.py CHANGED
@@ -304,45 +304,45 @@ def restore_in_Xmin(
304
 
305
  @spaces.GPU(duration=59)
306
  def restore_in_1min(*args, **kwargs):
307
- return restore(*args, **kwargs)
308
 
309
  @spaces.GPU(duration=119)
310
  def restore_in_2min(*args, **kwargs):
311
- return restore(*args, **kwargs)
312
 
313
  @spaces.GPU(duration=179)
314
  def restore_in_3min(*args, **kwargs):
315
- return restore(*args, **kwargs)
316
 
317
  @spaces.GPU(duration=239)
318
  def restore_in_4min(*args, **kwargs):
319
- return restore(*args, **kwargs)
320
 
321
  @spaces.GPU(duration=299)
322
  def restore_in_5min(*args, **kwargs):
323
- return restore(*args, **kwargs)
324
 
325
  @spaces.GPU(duration=359)
326
  def restore_in_6min(*args, **kwargs):
327
- return restore(*args, **kwargs)
328
 
329
  @spaces.GPU(duration=419)
330
  def restore_in_7min(*args, **kwargs):
331
- return restore(*args, **kwargs)
332
 
333
  @spaces.GPU(duration=479)
334
  def restore_in_8min(*args, **kwargs):
335
- return restore(*args, **kwargs)
336
 
337
  @spaces.GPU(duration=539)
338
  def restore_in_9min(*args, **kwargs):
339
- return restore(*args, **kwargs)
340
 
341
  @spaces.GPU(duration=599)
342
  def restore_in_10min(*args, **kwargs):
343
- return restore(*args, **kwargs)
344
 
345
- def restore(
346
  noisy_image,
347
  input_image,
348
  prompt,
 
304
 
305
  @spaces.GPU(duration=59)
306
  def restore_in_1min(*args, **kwargs):
307
+ return restore_on_gpu(*args, **kwargs)
308
 
309
  @spaces.GPU(duration=119)
310
  def restore_in_2min(*args, **kwargs):
311
+ return restore_on_gpu(*args, **kwargs)
312
 
313
  @spaces.GPU(duration=179)
314
  def restore_in_3min(*args, **kwargs):
315
+ return restore_on_gpu(*args, **kwargs)
316
 
317
  @spaces.GPU(duration=239)
318
  def restore_in_4min(*args, **kwargs):
319
+ return restore_on_gpu(*args, **kwargs)
320
 
321
  @spaces.GPU(duration=299)
322
  def restore_in_5min(*args, **kwargs):
323
+ return restore_on_gpu(*args, **kwargs)
324
 
325
  @spaces.GPU(duration=359)
326
  def restore_in_6min(*args, **kwargs):
327
+ return restore_on_gpu(*args, **kwargs)
328
 
329
  @spaces.GPU(duration=419)
330
  def restore_in_7min(*args, **kwargs):
331
+ return restore_on_gpu(*args, **kwargs)
332
 
333
  @spaces.GPU(duration=479)
334
  def restore_in_8min(*args, **kwargs):
335
+ return restore_on_gpu(*args, **kwargs)
336
 
337
  @spaces.GPU(duration=539)
338
  def restore_in_9min(*args, **kwargs):
339
+ return restore_on_gpu(*args, **kwargs)
340
 
341
  @spaces.GPU(duration=599)
342
  def restore_in_10min(*args, **kwargs):
343
+ return restore_on_gpu(*args, **kwargs)
344
 
345
+ def restore_on_gpu(
346
  noisy_image,
347
  input_image,
348
  prompt,