Spaces:
Sleeping
Sleeping
app.py
CHANGED
|
@@ -18,11 +18,13 @@ if not os.path.exists(MODEL_PATH):
|
|
| 18 |
filename=MODEL_FILE,
|
| 19 |
local_dir="/home/user/app/data/cache",
|
| 20 |
)
|
| 21 |
-
|
|
|
|
| 22 |
print(f"Model found at {MODEL_PATH}")
|
| 23 |
else:
|
| 24 |
print(f"Model not found at {MODEL_PATH}")
|
| 25 |
|
|
|
|
| 26 |
# تحميل النموذج
|
| 27 |
llm = Llama(
|
| 28 |
model_path=MODEL_PATH,
|
|
|
|
| 18 |
filename=MODEL_FILE,
|
| 19 |
local_dir="/home/user/app/data/cache",
|
| 20 |
)
|
| 21 |
+
|
| 22 |
+
if os.path.exists(MODEL_PATH):
|
| 23 |
print(f"Model found at {MODEL_PATH}")
|
| 24 |
else:
|
| 25 |
print(f"Model not found at {MODEL_PATH}")
|
| 26 |
|
| 27 |
+
|
| 28 |
# تحميل النموذج
|
| 29 |
llm = Llama(
|
| 30 |
model_path=MODEL_PATH,
|