Spaces:
Sleeping
Sleeping
venite-xjc
commited on
Commit
·
afe7b3d
1
Parent(s):
9ae7d73
Add application file
Browse files
app.py
CHANGED
|
@@ -1,7 +1,10 @@
|
|
| 1 |
import gradio as gr
|
|
|
|
| 2 |
|
| 3 |
def greet(img):
|
| 4 |
print(type(img))
|
|
|
|
|
|
|
| 5 |
return img
|
| 6 |
|
| 7 |
iface = gr.Interface(fn=greet, inputs="image", outputs="image")
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
+
import np
|
| 3 |
|
| 4 |
def greet(img):
|
| 5 |
print(type(img))
|
| 6 |
+
print(img)
|
| 7 |
+
print(np.min(img), np.max(img))
|
| 8 |
return img
|
| 9 |
|
| 10 |
iface = gr.Interface(fn=greet, inputs="image", outputs="image")
|