supundhananjaya commited on
Commit
c332d94
·
verified ·
1 Parent(s): 8e85c3b

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +16 -0
app.py ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+ import numpy as np
3
+ from PIL import Image
4
+
5
+
6
+ def dummy_model(img):
7
+ img_array = np.array(img)
8
+ return img_array
9
+
10
+ iface = gr.Interface(
11
+ fn=dummy_model,
12
+ inputs="image",
13
+ outputs="image"
14
+ )
15
+
16
+ iface.launch()