detr-cppe-v5 / app.py
Charles95's picture
Update app.py
5bb7dc8 verified
raw
history blame
438 Bytes
import gradio as gr
from transformers import pipeline
import os
env_vars = os.environ
# ζ‰“ε°ζ‰€ζœ‰ηŽ―ε’ƒε˜ι‡
for key, value in env_vars.items():
print(f"{key}: {value}")
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")