Spaces:
Sleeping
Sleeping
Update app.py
Browse files54 unmodified lines5556575859601 unmodified line6263646566676869707154 unmodified linesreturn confidences# --- Create the Gradio Interface ---print("[INFO] Creating Gradio interface...")iface = gr.Interface(1 unmodified lineinputs=gr.Image(type="pil", label="Upload an Image"),outputs=gr.Label(num_top_classes=2, label="Prediction Results"),title="🔥 Fire Detection AI 🔥",description="Lightweight CNN for Fire Detection with Integrated Hybrid Attention: A Depthwise-Driven Approach for Embedded Systems\nAuthors : Sakif Azwad, Mohammed Shahin Shah, Md Shakib\nSupervised by Md. Khaliluzzaman",examples=[["example_fire.jpg"],["example_nofire.jpg"]],cache_examples=False)54 unmodified lines5556575859606162636465661 unmodified line686970717273747576777854 unmodified linesreturn confidencesdescription_text = ("Lightweight CNN for Fire Detection with Integrated Hybrid Attention: A Depthwise-Driven Approach for Embedded Systems\n""Authors: Sakif Azwad, Mohammed Shahin Shah, Md Shakib\n""Supervised by: Md. Khaliluzzaman")# --- Create the Gradio Interface ---print("[INFO] Creating Gradio interface...")iface = gr.Interface(1 unmodified lineinputs=gr.Image(type="pil", label="Upload an Image"),outputs=gr.Label(num_top_classes=2, label="Prediction Results"),title="🔥 Fire Detection AI 🔥",description=description_text,examples=[["examples/example_fire.jpg"],["examples/example_nofire.jpg"]],],cache_examples=False)
app.py+11-4