File size: 590 Bytes
6919ed7
 
 
 
 
 
 
 
 
 
5d4f9ed
68d5b48
8e0a53d
 
 
6919ed7
5d4f9ed
6919ed7
b66b45c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# 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)