Sanjayraju30 commited on
Commit
bee7c3f
·
verified ·
1 Parent(s): 712c074

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -8,8 +8,8 @@ def process_image(img):
8
  return "No image uploaded", None, None
9
 
10
  ist_time = datetime.now(pytz.timezone("Asia/Kolkata")).strftime("%d-%m-%Y %I:%M:%S %p")
11
- weight, confidence = extract_weight_from_image(img)
12
- return f"{weight} (Confidence: {confidence}%)", ist_time, img
13
 
14
  with gr.Blocks(title="⚖️ Auto Weight Logger") as demo:
15
  gr.Markdown("# ⚖️ Auto Weight Logger")
 
8
  return "No image uploaded", None, None
9
 
10
  ist_time = datetime.now(pytz.timezone("Asia/Kolkata")).strftime("%d-%m-%Y %I:%M:%S %p")
11
+ weight, _ = extract_weight_from_image(img) # Ignore confidence in UI
12
+ return weight, ist_time, img
13
 
14
  with gr.Blocks(title="⚖️ Auto Weight Logger") as demo:
15
  gr.Markdown("# ⚖️ Auto Weight Logger")