guney commited on
Commit
9aaab47
·
1 Parent(s): 0704589

Added 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 photowithcode import *
3
+
4
+ def imgproc(photo, code, dim_background, mirror_code):
5
+ out = photowithcode_proc(photo, code, dim_background, mirror_code)
6
+ return out
7
+
8
+ demo = gr.Interface(
9
+ fn=imgproc,
10
+ inputs=[gr.Image(), gr.Image(), "checkbox", "checkbox"],
11
+ outputs=["image"],
12
+ )
13
+ demo.launch()