nssharmaofficial commited on
Commit
35b2170
·
2 Parent(s): 10385fa f6f2edb

Merge branch 'main' of hf.co:spaces/nssharmaofficial/Red-eye-effect-classifier

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()