DawnC commited on
Commit
0d69c9d
·
1 Parent(s): 3101396

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
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