Spaces:
Sleeping
Sleeping
Create app.py
Browse files
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()
|