suryaprakash01 commited on
Commit
7e4a911
·
verified ·
1 Parent(s): 64f21e1

Delete app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -19
app.py DELETED
@@ -1,19 +0,0 @@
1
- import streamlit as st
2
- from det_model import predict_dimensions # function you'll define
3
- from detectron_model import load_detectron_model # function you'll define
4
- from PIL import Image
5
- import torch
6
-
7
- st.title("Object Dimension Estimator using Detectron2")
8
-
9
- uploaded_file = st.file_uploader("Upload an image", type=["jpg", "png", "jpeg"])
10
-
11
- if uploaded_file:
12
- image = Image.open(uploaded_file).convert("RGB")
13
- st.image(image, caption="Uploaded Image", use_column_width=True)
14
-
15
- st.write("Running detection and dimension estimation...")
16
- detectron = load_detectron_model()
17
- dimensions = predict_dimensions(image, detectron)
18
-
19
- st.success(f"Estimated Dimensions (LxWxH): {dimensions}")