Spaces:
Sleeping
Sleeping
Update run.py
Browse files
run.py
CHANGED
@@ -1,17 +1,18 @@
|
|
1 |
import gradio as gr
|
2 |
|
3 |
-
|
4 |
-
|
5 |
-
return
|
6 |
-
|
7 |
|
8 |
with gr.Blocks() as demo:
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
|
|
14 |
|
|
|
15 |
|
16 |
if __name__ == "__main__":
|
17 |
-
demo.launch()
|
|
|
1 |
import gradio as gr
|
2 |
|
3 |
+
def process_images(image1, image2):
|
4 |
+
# This function will just return the two images for demonstration purposes
|
5 |
+
return image1, image2
|
|
|
6 |
|
7 |
with gr.Blocks() as demo:
|
8 |
+
with gr.Row():
|
9 |
+
file_input_1 = gr.Image()
|
10 |
+
file_input_2 = gr.Image()
|
11 |
+
output_1 = gr.Image()
|
12 |
+
output_2 = gr.Image()
|
13 |
+
btn = gr.Button("Submit")
|
14 |
|
15 |
+
btn.click(process_images, inputs=[file_input_1, file_input_2], outputs=[output_1, output_2])
|
16 |
|
17 |
if __name__ == "__main__":
|
18 |
+
demo.launch()
|