Update app.py
Browse files
app.py
CHANGED
@@ -171,17 +171,16 @@ def predict_image(img, confidence_threshold):
|
|
171 |
label_4 = f"Error: {str(e)}"
|
172 |
|
173 |
try:
|
|
|
174 |
img_bytes = convert_pil_to_bytes(img_pil)
|
175 |
-
|
176 |
# print(img)
|
177 |
# print(img_bytes)
|
178 |
-
|
179 |
response5_raw = call_inference(img)
|
180 |
print(response5_raw)
|
181 |
response5 = response5_raw
|
182 |
print(response5)
|
183 |
label_5 = f"Result: {response5}"
|
184 |
-
|
185 |
except Exception as e:
|
186 |
label_5 = f"Error: {str(e)}"
|
187 |
|
|
|
171 |
label_4 = f"Error: {str(e)}"
|
172 |
|
173 |
try:
|
174 |
+
result_5output = [5, 0.0, 0.0, 'MAINTENANCE']
|
175 |
img_bytes = convert_pil_to_bytes(img_pil)
|
|
|
176 |
# print(img)
|
177 |
# print(img_bytes)
|
|
|
178 |
response5_raw = call_inference(img)
|
179 |
print(response5_raw)
|
180 |
response5 = response5_raw
|
181 |
print(response5)
|
182 |
label_5 = f"Result: {response5}"
|
183 |
+
|
184 |
except Exception as e:
|
185 |
label_5 = f"Error: {str(e)}"
|
186 |
|