Sanjayraju30 commited on
Commit
aba4a6b
Β·
verified Β·
1 Parent(s): 985c293

Update src/streamlit_app.py

Browse files
Files changed (1) hide show
  1. src/streamlit_app.py +7 -5
src/streamlit_app.py CHANGED
@@ -8,8 +8,10 @@ st.title("βš–οΈ Auto Weight Logger")
8
  img_data = st.camera_input("πŸ“· Capture the weight display")
9
 
10
  if img_data:
11
- image = Image.open(img_data)
12
- st.image(image, caption="πŸ“Έ Snapshot", use_column_width=True)
13
- with st.spinner("Extracting weight..."):
14
- weight = extract_weight_from_image(image)
15
- st.success(f"βœ… Detected Weight: {weight} g")
 
 
 
8
  img_data = st.camera_input("πŸ“· Capture the weight display")
9
 
10
  if img_data:
11
+ image = Image.open(img_data)
12
+ st.image(image, caption="πŸ“Έ Snapshot", use_column_width=True)
13
+
14
+ with st.spinner("Extracting weight..."):
15
+ weight = extract_weight_from_image(image)
16
+
17
+ st.success(f"βœ… Detected Weight: {weight} g")