Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -11,8 +11,7 @@ print(f"Prediction environment scikit-learn version: {sklearn.__version__}")
|
|
| 11 |
def decode_file(file_path):
|
| 12 |
try:
|
| 13 |
with open(file_path, 'rb') as file:
|
| 14 |
-
|
| 15 |
-
return obj
|
| 16 |
except FileNotFoundError:
|
| 17 |
print(f"Error: File not found at {file_path}")
|
| 18 |
return None
|
|
|
|
| 11 |
def decode_file(file_path):
|
| 12 |
try:
|
| 13 |
with open(file_path, 'rb') as file:
|
| 14 |
+
return pickle.load(file, mmap=True) # modified here
|
|
|
|
| 15 |
except FileNotFoundError:
|
| 16 |
print(f"Error: File not found at {file_path}")
|
| 17 |
return None
|