Download main.py from timigogo/new-api: direct link, hf CLI and curl.
- Browser
- Download file 170 Bytes
-
https://huggingface.co/spaces/timigogo/new-api/resolve/main/main.py
- Command line
-
hf download hf://spaces/timigogo/new-api/main.py
-
curl -L -o main.py https://huggingface.co/spaces/timigogo/new-api/resolve/main/main.py
170 Bytes
| import os | |
| sql_dsn = os.getenv("SQL_DSN") | |
| if sql_dsn: | |
| print(f"The value of SQL_DSN is: {sql_dsn}") | |
| else: | |
| print("SQL_DSN environment variable not found.") |