Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -623,6 +623,8 @@ async def predict(image):
|
|
623 |
|
624 |
dogs_info = ""
|
625 |
all_breeds = set() # 使用集合來避免重複
|
|
|
|
|
626 |
draw = ImageDraw.Draw(annotated_image)
|
627 |
font = ImageFont.load_default()
|
628 |
|
|
|
623 |
|
624 |
dogs_info = ""
|
625 |
all_breeds = set() # 使用集合來避免重複
|
626 |
+
# 創建一個新的圖像副本用於註釋
|
627 |
+
annotated_image = image.copy()
|
628 |
draw = ImageDraw.Draw(annotated_image)
|
629 |
font = ImageFont.load_default()
|
630 |
|