Update app.py
Browse files
app.py
CHANGED
|
@@ -44,6 +44,11 @@ with gr.Blocks(title="Image Classification for 1000 Objects", css=".gradio-conta
|
|
| 44 |
|
| 45 |
input_box.change(display_model_details, input_box, output_box)
|
| 46 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 47 |
# gr.Interface(
|
| 48 |
# fn=display_model_details,
|
| 49 |
# inputs="text",
|
|
|
|
| 44 |
|
| 45 |
input_box.change(display_model_details, input_box, output_box)
|
| 46 |
|
| 47 |
+
# Image Upload and Gallery
|
| 48 |
+
uploaded_images = gr.Gallery(label="Uploaded Images", type="image")
|
| 49 |
+
upload_button = gr.Button("Upload Images")
|
| 50 |
+
upload_button.click(fn=lambda images: uploaded_images.update(images), inputs=gr.Image(type="file", label="Upload Images", extensions="jpg")) # Filter for JPG only
|
| 51 |
+
|
| 52 |
# gr.Interface(
|
| 53 |
# fn=display_model_details,
|
| 54 |
# inputs="text",
|