DawnC commited on
Commit
61756ef
1 Parent(s): 7c891c6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -206,7 +206,7 @@ async def process_single_dog(image):
206
  top1_prob, topk_breeds, relative_probs = await predict_single_dog(image)
207
 
208
  # Case 1: Low confidence - unclear image or breed not in dataset
209
- if top1_prob < 0.15:
210
  error_message = '''
211
  <div class="dog-info-card">
212
  <div class="breed-info">
@@ -329,7 +329,7 @@ async def predict(image):
329
  # 開始資訊卡片
330
  dogs_info += f'<div class="dog-info-card" style="border-left: 6px solid {color};">'
331
 
332
- if combined_confidence < 0.15:
333
  dogs_info += f'''
334
  <div class="dog-info-header" style="background-color: {color}10;">
335
  <span class="dog-label" style="color: {color};">Dog {i+1}</span>
 
206
  top1_prob, topk_breeds, relative_probs = await predict_single_dog(image)
207
 
208
  # Case 1: Low confidence - unclear image or breed not in dataset
209
+ if top1_prob < 0.2:
210
  error_message = '''
211
  <div class="dog-info-card">
212
  <div class="breed-info">
 
329
  # 開始資訊卡片
330
  dogs_info += f'<div class="dog-info-card" style="border-left: 6px solid {color};">'
331
 
332
+ if combined_confidence < 0.2:
333
  dogs_info += f'''
334
  <div class="dog-info-header" style="background-color: {color}10;">
335
  <span class="dog-label" style="color: {color};">Dog {i+1}</span>