Kangarroar commited on
Commit
4f709a1
1 Parent(s): 0453296

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -16,8 +16,9 @@ with open("/home/user/.local/lib/python3.8/site-packages/torch/serialization.py"
16
  text = f.read()
17
 
18
  # Replace the original line with the new line
19
- text = text.replace("map_location: MAP_LOCATION = None,", "map_location: MAP_LOCATION = 'CPU',")
20
-
 
21
  # Save the modified string to the original file
22
  with open("/home/user/.local/lib/python3.8/site-packages/torch/serialization.py", "w") as f:
23
  f.write(text)
 
16
  text = f.read()
17
 
18
  # Replace the original line with the new line
19
+ text = text.replace("map_location: MAP_LOCATION = None,", "map_location: MAP_LOCATION = 'cpu',")
20
+ print("Replaced")
21
+ print(/home/user/.local/lib/python3.8/site-packages/torch/serialization.py)
22
  # Save the modified string to the original file
23
  with open("/home/user/.local/lib/python3.8/site-packages/torch/serialization.py", "w") as f:
24
  f.write(text)