Fabrice-TIERCELIN
commited on
Commit
•
c8547f4
1
Parent(s):
427d179
4min
Browse files- gradio_demo.py +3 -3
gradio_demo.py
CHANGED
@@ -78,7 +78,7 @@ def check(input_image):
|
|
78 |
def reset_feedback():
|
79 |
return 3, ''
|
80 |
|
81 |
-
@spaces.GPU(duration=
|
82 |
def stage1_process(input_image, gamma_correction):
|
83 |
print('Start stage1_process')
|
84 |
if torch.cuda.device_count() == 0:
|
@@ -100,7 +100,7 @@ def stage1_process(input_image, gamma_correction):
|
|
100 |
print('End stage1_process')
|
101 |
return LQ, gr.update(visible = True)
|
102 |
|
103 |
-
@spaces.GPU(duration=
|
104 |
def llave_process(input_image, temperature, top_p, qs=None):
|
105 |
print('Start llave_process')
|
106 |
if torch.cuda.device_count() == 0:
|
@@ -116,7 +116,7 @@ def llave_process(input_image, temperature, top_p, qs=None):
|
|
116 |
print('End llave_process')
|
117 |
return captions[0]
|
118 |
|
119 |
-
@spaces.GPU(duration=
|
120 |
def stage2_process(
|
121 |
noisy_image,
|
122 |
denoise_image,
|
|
|
78 |
def reset_feedback():
|
79 |
return 3, ''
|
80 |
|
81 |
+
@spaces.GPU(duration=240)
|
82 |
def stage1_process(input_image, gamma_correction):
|
83 |
print('Start stage1_process')
|
84 |
if torch.cuda.device_count() == 0:
|
|
|
100 |
print('End stage1_process')
|
101 |
return LQ, gr.update(visible = True)
|
102 |
|
103 |
+
@spaces.GPU(duration=240)
|
104 |
def llave_process(input_image, temperature, top_p, qs=None):
|
105 |
print('Start llave_process')
|
106 |
if torch.cuda.device_count() == 0:
|
|
|
116 |
print('End llave_process')
|
117 |
return captions[0]
|
118 |
|
119 |
+
@spaces.GPU(duration=240)
|
120 |
def stage2_process(
|
121 |
noisy_image,
|
122 |
denoise_image,
|