Spaces:
Sleeping
Sleeping
Update app.py
Browse files54 unmodified lines55565758596061626364656667686970717273747576777854 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(fn=predict_fire,inputs=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)54 unmodified lines55565758596061626364656667686970717273747576777854 unmodified linesreturn confidences# --- Create the Gradio Interface ---print("[INFO] Creating Gradio interface...")description_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")iface = gr.Interface(fn=predict_fire,inputs=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/ex1.jpg"],["examples/ex2.jpg"]],cache_examples=False)
app.py+7-7