Update app.py
Browse files
app.py
CHANGED
|
@@ -157,8 +157,8 @@ def predict_image(img, confidence_threshold):
|
|
| 157 |
label_4 = f"Error: {str(e)}"
|
| 158 |
|
| 159 |
try:
|
| 160 |
-
img_bytes = convert_pil_to_bytes(img_pil)
|
| 161 |
-
response5_raw = call_inference(
|
| 162 |
print(response5_raw)
|
| 163 |
response5 = response5_raw
|
| 164 |
|
|
|
|
| 157 |
label_4 = f"Error: {str(e)}"
|
| 158 |
|
| 159 |
try:
|
| 160 |
+
#img_bytes = convert_pil_to_bytes(img_pil)
|
| 161 |
+
response5_raw = call_inference(img_pill.path)
|
| 162 |
print(response5_raw)
|
| 163 |
response5 = response5_raw
|
| 164 |
|