Spaces:
Sleeping
Sleeping
Download fix.py from Leon4gr45/nodepad-hypotheses: direct link, hf CLI and curl.
- Browser
- Download file 480 Bytes
-
https://huggingface.co/spaces/Leon4gr45/nodepad-hypotheses/resolve/main/fix.py
- Command line
-
hf download hf://spaces/Leon4gr45/nodepad-hypotheses/fix.py
-
curl -L -o fix.py https://huggingface.co/spaces/Leon4gr45/nodepad-hypotheses/resolve/main/fix.py
480 Bytes
| with open("lib/ai-settings.ts", "r") as f: | |
| content = f.read() | |
| content = content.replace(" const [envConfig, setEnvConfig] = useState<{hasEnvKey: boolean, envModel: string | null} | null>(null)\n const [envConfig, setEnvConfig] = useState<{hasEnvKey: boolean, envModel: string | null} | null>(null)", " const [envConfig, setEnvConfig] = useState<{hasEnvKey: boolean, envModel: string | null} | null>(null)") | |
| with open("lib/ai-settings.ts", "w") as f: | |
| f.write(content) | |