File size: 290 Bytes
cf3ce1b
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
import gradio as gr

def predict(inp):
    return "Yaw: 30 \n Pitch: 19\n Direction: Left"
gr.Interface(fn=predict, 
             inputs=gr.Image(type="pil"),
             outputs=gr.Textbox(),
             examples=["face_left.jpg","face_right.jpg","face_up.jpg","face_down.jpg"]).launch()