Spaces:
Running
Running
add hcw classification
Browse files- .gitignore +0 -1
- app.py +1 -1
- hcw-classification.png → hcw_classification.png +0 -0
.gitignore
CHANGED
|
@@ -1,5 +1,4 @@
|
|
| 1 |
flagged/
|
| 2 |
-
*.png
|
| 3 |
*.jpg
|
| 4 |
*.mp4
|
| 5 |
*.jpeg
|
|
|
|
| 1 |
flagged/
|
|
|
|
| 2 |
*.jpg
|
| 3 |
*.mp4
|
| 4 |
*.jpeg
|
app.py
CHANGED
|
@@ -58,7 +58,7 @@ def classify_image(img, conf_threshold=0.25, iou_threshold=0.45):
|
|
| 58 |
return Image.fromarray(annotated_img), waste_details
|
| 59 |
|
| 60 |
|
| 61 |
-
with open("
|
| 62 |
encoded_image = base64.b64encode(image_file.read()).decode()
|
| 63 |
image_data_uri = f"data:image/png;base64,{encoded_image}"
|
| 64 |
|
|
|
|
| 58 |
return Image.fromarray(annotated_img), waste_details
|
| 59 |
|
| 60 |
|
| 61 |
+
with open("hcw_classification.png", "rb") as image_file:
|
| 62 |
encoded_image = base64.b64encode(image_file.read()).decode()
|
| 63 |
image_data_uri = f"data:image/png;base64,{encoded_image}"
|
| 64 |
|
hcw-classification.png → hcw_classification.png
RENAMED
|
File without changes
|