nssharmaofficial commited on
Commit
f6f2edb
·
verified ·
1 Parent(s): 3bdf51a

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -0
app.py ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+ from source.predict_sample import main_classification
3
+
4
+
5
+ iface = gr.Interface(fn=main_classification,
6
+ inputs=gr.Image(image_mode='RGB'),
7
+ outputs="text",
8
+ title="Red eye effect classifier",
9
+ description="Upload an image, and the system will predict classification.")
10
+ iface.launch()