Spaces:
Running
Running
paresh95
commited on
Commit
•
1ed5ce5
1
Parent(s):
159aee9
PS|Add image interface
Browse files
app.py
CHANGED
@@ -1,7 +1,12 @@
|
|
1 |
import gradio as gr
|
2 |
|
3 |
-
def
|
4 |
-
return
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
|
6 |
-
iface = gr.Interface(fn=greet, inputs="text", outputs="text")
|
7 |
iface.launch(share=True)
|
|
|
1 |
import gradio as gr
|
2 |
|
3 |
+
def identity_function(input_image):
|
4 |
+
return input_image
|
5 |
+
|
6 |
+
iface = gr.Interface(
|
7 |
+
fn=identity_function,
|
8 |
+
inputs=gr.inputs.Image(),
|
9 |
+
outputs=gr.outputs.Image()
|
10 |
+
)
|
11 |
|
|
|
12 |
iface.launch(share=True)
|