Update app.py
Browse files
app.py
CHANGED
|
@@ -77,9 +77,9 @@ def classify_image(image):
|
|
| 77 |
# Create Gradio interface
|
| 78 |
interface = gr.Interface(
|
| 79 |
fn=classify_image, # Function to handle predictions
|
| 80 |
-
inputs=gr.
|
| 81 |
-
outputs="
|
| 82 |
-
title="
|
| 83 |
description="Upload an image to classify it into one of the predefined classes."
|
| 84 |
)
|
| 85 |
|
|
|
|
| 77 |
# Create Gradio interface
|
| 78 |
interface = gr.Interface(
|
| 79 |
fn=classify_image, # Function to handle predictions
|
| 80 |
+
inputs=gr.Image(type="pil", label="Original Images"), # Accept image input
|
| 81 |
+
outputs=gr.Textbox(label="Label "), # Display output as text
|
| 82 |
+
title="German Traffic Sign Recognition",
|
| 83 |
description="Upload an image to classify it into one of the predefined classes."
|
| 84 |
)
|
| 85 |
|