Update app.py
Browse files
app.py
CHANGED
@@ -4,10 +4,10 @@ from model import model
|
|
4 |
def classify_image(image):
|
5 |
result = model.predict(image)
|
6 |
return result
|
7 |
-
|
8 |
demo = gr.Interface(fn=classify_image,
|
9 |
inputs=gr.Image(),
|
10 |
-
outputs=
|
11 |
title="IBM AI Capstone project: Crack detection for structural health monitoring",
|
12 |
-
description="Convolutional neural network based on resnet50 model made in PyTorch to classify samples of different images of structure integrity. Demo for the final proyect of the IBM AI Engineer professional certificate. Improving AI model project. AI model and interface built by Eng. Michael Leonardo Aguas.",)
|
13 |
demo.launch()
|
|
|
4 |
def classify_image(image):
|
5 |
result = model.predict(image)
|
6 |
return result
|
7 |
+
|
8 |
demo = gr.Interface(fn=classify_image,
|
9 |
inputs=gr.Image(),
|
10 |
+
outputs=gr.Label(num_top_classes=2),
|
11 |
title="IBM AI Capstone project: Crack detection for structural health monitoring",
|
12 |
+
description="Convolutional neural network based on resnet50 model made in PyTorch to classify samples of different images of structure integrity. Demo for the final proyect of the IBM AI Engineer professional certificate. Improving AI model project THE PERFORMANCE MAY CHANGE DEPENDING OF THE USE OF THE CPU. AI model and interface built by Eng. Michael Leonardo Aguas.",)
|
13 |
demo.launch()
|