Spaces:
Runtime error
Runtime error
Download scripts/fix_paths.py from ChiefJaydeep919/odysseus: direct link, hf CLI and curl.
- Browser
- Download file 280 Bytes
-
https://huggingface.co/spaces/ChiefJaydeep919/odysseus/resolve/main/scripts/fix_paths.py
- Command line
-
hf download hf://spaces/ChiefJaydeep919/odysseus/scripts/fix_paths.py
-
curl -L -o fix_paths.py https://huggingface.co/spaces/ChiefJaydeep919/odysseus/resolve/main/scripts/fix_paths.py
280 Bytes
| import fileinput | |
| import sys | |
| # Read app.py and replace the BASE_DIR line | |
| for line in fileinput.input('app.py', inplace=True): | |
| if line.startswith('BASE_DIR = '): | |
| print('BASE_DIR = os.path.dirname(os.path.abspath(__file__)) + "/"') | |
| else: | |
| print(line, end='') | |