Nguyen Hoang Bien commited on
Commit
cf3ce1b
1 Parent(s): 58da359

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -0
app.py ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+
3
+ def predict(inp):
4
+ return "Yaw: 30 \n Pitch: 19\n Direction: Left"
5
+ gr.Interface(fn=predict,
6
+ inputs=gr.Image(type="pil"),
7
+ outputs=gr.Textbox(),
8
+ examples=["face_left.jpg","face_right.jpg","face_up.jpg","face_down.jpg"]).launch()