detr-cppe-v5 / app.py
Charles95's picture
Create app.py
ddfe9f1 verified
raw
history blame
310 Bytes
import gradio as gr
from transformers import pipeline
pipe = pipeline("object-detection", model="Charles95/autotrain-detr-cppe-v5")
examples = [
["images/1.jpg"],
["images/2.jpg"],
["images/3.jpg"],
]
demo = gr.Interface.from_pipeline(pipe, examples=examples)
demo.launch(server_name="0.0.0.0")