Spaces:
Runtime error
Runtime error
tori29umai
commited on
Commit
·
cb13df9
1
Parent(s):
19149b6
Update
Browse files
app.py
CHANGED
@@ -218,17 +218,17 @@ class webui:
|
|
218 |
self.demo.add(gamma, gamma_description)
|
219 |
self.demo.add(submit)
|
220 |
|
221 |
-
|
222 |
-
|
223 |
|
224 |
-
|
225 |
-
|
226 |
-
|
227 |
-
|
228 |
-
|
229 |
|
230 |
-
|
231 |
|
232 |
-
|
233 |
-
|
234 |
-
|
|
|
218 |
self.demo.add(gamma, gamma_description)
|
219 |
self.demo.add(submit)
|
220 |
|
221 |
+
with gr.Column():
|
222 |
+
output_image = gr.Image(label="Processed Image")
|
223 |
|
224 |
+
submit.click(
|
225 |
+
self.main,
|
226 |
+
inputs=[input_image, kernel_size, sigma, k_sigma, epsilon, phi, gamma],
|
227 |
+
outputs=[output_image]
|
228 |
+
)
|
229 |
|
230 |
+
self.demo.launch(share=share)
|
231 |
|
232 |
+
if __name__ == "__main__":
|
233 |
+
ui = webui()
|
234 |
+
ui.launch(share=True)
|