Spaces:
Build error
Build error
Anthony-Ml
commited on
Commit
•
19a972e
1
Parent(s):
ddc2484
Update app.py
Browse files
app.py
CHANGED
@@ -79,7 +79,7 @@ def interpretation_function(image_path, model, target_layer, target_category=Non
|
|
79 |
|
80 |
# Show the CAM on the original image
|
81 |
visualization = show_cam_on_image(input_image, cam_image)
|
82 |
-
visualization.show()
|
83 |
|
84 |
|
85 |
with gr.Blocks() as demo:
|
@@ -97,6 +97,6 @@ with gr.Blocks() as demo:
|
|
97 |
#interpretation="default"
|
98 |
enable_queue=True
|
99 |
|
100 |
-
|
101 |
outputs = gr.Label(num_top_classes=3),title=title,description=description,examples=examples, interpretation=interpretation,enable_queue=enable_queue).launch(share=False)
|
102 |
|
|
|
79 |
|
80 |
# Show the CAM on the original image
|
81 |
visualization = show_cam_on_image(input_image, cam_image)
|
82 |
+
#visualization.show()
|
83 |
|
84 |
|
85 |
with gr.Blocks() as demo:
|
|
|
97 |
#interpretation="default"
|
98 |
enable_queue=True
|
99 |
|
100 |
+
gr.Interface(fn=predict_image, inputs=gr.Image(shape=(224,224)),
|
101 |
outputs = gr.Label(num_top_classes=3),title=title,description=description,examples=examples, interpretation=interpretation,enable_queue=enable_queue).launch(share=False)
|
102 |
|