EdVences76 commited on
Commit
b10ec73
·
verified ·
1 Parent(s): 8fb2a7f

Create app.py

Browse files

Add initial Gradio app

Files changed (1) hide show
  1. app.py +23 -0
app.py ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """
2
+ Hugging Face Space:
3
+ https://huggingface.co/spaces/EdVences76/facial-emotion-recognition
4
+
5
+ License:
6
+ This application is governed by a custom Responsible AI License.
7
+ See LICENSE.pdf for full terms.
8
+ """
9
+
10
+ import gradio as gr
11
+
12
+ def predict(image):
13
+ return "Model loaded successfully. Prediction logic coming next."
14
+
15
+ demo = gr.Interface(
16
+ fn=predict,
17
+ inputs=gr.Image(type="pil"),
18
+ outputs=gr.Textbox(label="Output"),
19
+ title="Facial Emotion Recognition",
20
+ description="Upload an image to test the facial emotion recognition model."
21
+ )
22
+
23
+ demo.launch()