Noursine commited on
Commit
9435820
·
verified ·
1 Parent(s): b5ca905

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -12
app.py CHANGED
@@ -14,18 +14,7 @@ import io
14
 
15
  app = FastAPI(title="Roof Segmentation API")
16
 
17
- # -----------------------------
18
- # 1. Download model from Google Drive
19
- # -----------------------------
20
- MODEL_URL = "https://drive.google.com/uc?export=download&id=1bazIVYG0CYMubDLoMu5pgH6ArC1sayzg"
21
- MODEL_PATH = "model_final.pth"
22
-
23
- if not os.path.exists(MODEL_PATH):
24
- print("⏬ Downloading model...")
25
- r = requests.get(MODEL_URL, allow_redirects=True)
26
- open(MODEL_PATH, 'wb').write(r.content)
27
- print("✅ Model downloaded!")
28
-
29
  # -----------------------------
30
  # 2. Configure Detectron2
31
  # -----------------------------
 
14
 
15
  app = FastAPI(title="Roof Segmentation API")
16
 
17
+ MODEL_PATH = "model_final (4).pth"
 
 
 
 
 
 
 
 
 
 
 
18
  # -----------------------------
19
  # 2. Configure Detectron2
20
  # -----------------------------