Dharini Baskaran
commited on
Commit
·
7524599
1
Parent(s):
8af70b5
updated the model weight path
Browse files
app.py
CHANGED
|
@@ -33,7 +33,9 @@ if not os.path.exists(model_path):
|
|
| 33 |
print("Model file not found! Downloading...")
|
| 34 |
try:
|
| 35 |
gdown.download(GDRIVE_URL, model_path, quiet=False, use_cookies=False)
|
| 36 |
-
|
|
|
|
|
|
|
| 37 |
except Exception as e:
|
| 38 |
print(f"Failed to download model: {e}")
|
| 39 |
|
|
|
|
| 33 |
print("Model file not found! Downloading...")
|
| 34 |
try:
|
| 35 |
gdown.download(GDRIVE_URL, model_path, quiet=False, use_cookies=False)
|
| 36 |
+
if not os.path.exists(model_path):
|
| 37 |
+
raise Exception("Model download failed: File not found after download.")
|
| 38 |
+
print("✅ Model downloaded successfully.")
|
| 39 |
except Exception as e:
|
| 40 |
print(f"Failed to download model: {e}")
|
| 41 |
|