import gradio as gr from laod_pipeline import laod_gdino from huggingface_hub import login import os for variable_name in os.environ.keys(): print(variable_name) login(token=os.environ.get('gemma_access_token')) examples =[['images/1.jpg'], ['images/2.jpg'], ['images/3.jpg']] title = "LAOD: LLM-Guided Agentic Object Detection for Open-World Understanding" # --- HTML/CSS for Centered Horizontal Buttons --- # We use a div with Flexbox to center the buttons and add a gap between them. description = """

For more details:

GitHub Repo arXiv Paper
""" demo = gr.Interface( fn=laod_gdino, inputs=gr.Image(label="Upload an Image", type="pil"), outputs=gr.Image(label="Output"), examples=examples, title=title, description=description ) # To run the app, uncomment the line below demo.launch()