IzumiSatoshi commited on
Commit
840c036
·
1 Parent(s): 7f11259

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -0
app.py ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+ from PIL import Image
3
+
4
+
5
+ def greet(input_img):
6
+ return input_img
7
+
8
+
9
+ inp = gr.inputs.Image(
10
+ image_mode="L", source="canvas", shape=(28, 28), invert_colors=True, tool="select"
11
+ )
12
+ demo = gr.Interface(fn=greet, inputs=inp, outputs="image")
13
+ demo.launch()