ranimeree commited on
Commit
71d9308
·
verified ·
1 Parent(s): c87df1f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
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
- obj = pickle.load(file)
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