Spaces:
Runtime error
Runtime error
# Define custom CSS for background image | |
custom_css = """ | |
body { | |
background-image: url('/extracted_files/Pest_Dataset/bees/bees (444).jpg'); | |
background-size: cover; | |
background-repeat: no-repeat; | |
background-attachment: fixed; | |
color: white; | |
} | |
""" | |
gr.Interface( | |
fn=predict_image, | |
inputs=image, | |
outputs=label, | |
title="PestScout: An Agricultural Pest Image Classification System Using Deep Conventional Neural Networks", | |
description="Upload an image of a pest to classify it into one of the predefined categories.", | |
css=custom_css | |
).launch(debug=True) |