Download fix_syntax.py from whassan/Rukku: direct link, hf CLI and curl.
- Browser
- Download file 247 Bytes
-
https://huggingface.co/spaces/whassan/Rukku/resolve/main/fix_syntax.py
- Command line
-
hf download hf://spaces/whassan/Rukku/fix_syntax.py
-
curl -L -o fix_syntax.py https://huggingface.co/spaces/whassan/Rukku/resolve/main/fix_syntax.py
247 Bytes
| with open('app.py', 'r') as f: | |
| content = f.read() | |
| content = content.replace("outputs=model_info_md)\\n custom_repo_input.change", "outputs=model_info_md)\n custom_repo_input.change") | |
| with open('app.py', 'w') as f: | |
| f.write(content) | |