Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -52,7 +52,7 @@ def predict(pilimg):
|
|
| 52 |
|
| 53 |
annotated_image = pilimg.convert("RGB")
|
| 54 |
draw = ImageDraw.Draw(annotated_image)
|
| 55 |
-
font = ImageFont.truetype("arialbd.ttf", 30) # Use arial.ttf for bold font
|
| 56 |
|
| 57 |
if classified_type == classes[0]:
|
| 58 |
draw.text((300, 10), classified_type, fill="red", font=font)
|
|
|
|
| 52 |
|
| 53 |
annotated_image = pilimg.convert("RGB")
|
| 54 |
draw = ImageDraw.Draw(annotated_image)
|
| 55 |
+
font = ImageFont.truetype("font/arialbd.ttf", 30) # Use arial.ttf for bold font
|
| 56 |
|
| 57 |
if classified_type == classes[0]:
|
| 58 |
draw.text((300, 10), classified_type, fill="red", font=font)
|