Fabrice-TIERCELIN commited on
Commit
893e481
·
verified ·
1 Parent(s): 0064bbc

Fix arguments

Browse files
Files changed (1) hide show
  1. app.py +9 -2
app.py CHANGED
@@ -82,7 +82,12 @@ def check(input_image):
82
  raise gr.Error("Please provide an image to restore.")
83
 
84
  @spaces.GPU(duration=420)
85
- def stage1_process(input_image, gamma_correction):
 
 
 
 
 
86
  print('stage1_process ==>>')
87
  if torch.cuda.device_count() == 0:
88
  gr.Warning('Set this space to GPU config to make it work.')
@@ -664,7 +669,9 @@ with gr.Blocks() as interface:
664
  input_image
665
  ], outputs = [], queue = False, show_progress = False).success(fn = stage1_process, inputs = [
666
  input_image,
667
- gamma_correction
 
 
668
  ], outputs=[
669
  denoise_image,
670
  denoise_information
 
82
  raise gr.Error("Please provide an image to restore.")
83
 
84
  @spaces.GPU(duration=420)
85
+ def stage1_process(
86
+ input_image,
87
+ gamma_correction,
88
+ diff_dtype,
89
+ ae_dtype
90
+ ):
91
  print('stage1_process ==>>')
92
  if torch.cuda.device_count() == 0:
93
  gr.Warning('Set this space to GPU config to make it work.')
 
669
  input_image
670
  ], outputs = [], queue = False, show_progress = False).success(fn = stage1_process, inputs = [
671
  input_image,
672
+ gamma_correction,
673
+ diff_dtype,
674
+ ae_dtype
675
  ], outputs=[
676
  denoise_image,
677
  denoise_information