krishnatherokar commited on
Commit
5e31bec
·
1 Parent(s): f2d21db

feat: add app.py

Browse files
Files changed (2) hide show
  1. .gitignore +6 -0
  2. app.py +11 -0
.gitignore ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ __pycache__/
2
+ *.py[cod]
3
+ *$py.class
4
+
5
+ .vscode/
6
+ *.log
app.py ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+ from utils import predict_and_decode
3
+
4
+ interface = gr.Interface(
5
+ fn=predict_and_decode,
6
+ inputs=gr.Image(type="pil"),
7
+ outputs="text",
8
+ title="Captcha Decoder"
9
+ )
10
+
11
+ interface.launch()