Sanjayraju30 commited on
Commit
a43dbec
·
verified ·
1 Parent(s): 18f53a5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -5
app.py CHANGED
@@ -7,13 +7,8 @@ def process_image(img):
7
  if img is None:
8
  return "No image uploaded", None, None
9
 
10
- # Get IST time
11
  ist_time = datetime.now(pytz.timezone("Asia/Kolkata")).strftime("%d-%m-%Y %I:%M:%S %p")
12
-
13
- # Extract weight and confidence
14
  weight, confidence = extract_weight_from_image(img)
15
-
16
- # Format output in kg
17
  return f"{weight} kg (Confidence: {confidence}%)", ist_time, img
18
 
19
  with gr.Blocks(title="⚖️ Auto Weight Logger") as demo:
 
7
  if img is None:
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} kg (Confidence: {confidence}%)", ist_time, img
13
 
14
  with gr.Blocks(title="⚖️ Auto Weight Logger") as demo: