Spaces:
Sleeping
Sleeping
Download PlotMyData/__init__.py from jedick/plotmydata: direct link, hf CLI and curl.
- Browser
- Download file 393 Bytes
-
https://huggingface.co/spaces/jedick/plotmydata/resolve/8f7fb718ead62050e7b9eca41017c294d9ec755d/PlotMyData/__init__.py
- Command line
-
hf download hf://spaces/jedick/plotmydata@8f7fb718ead62050e7b9eca41017c294d9ec755d/PlotMyData/__init__.py
-
curl -L -o __init__.py https://huggingface.co/spaces/jedick/plotmydata/resolve/8f7fb718ead62050e7b9eca41017c294d9ec755d/PlotMyData/__init__.py
393 Bytes
| from pathlib import Path | |
| import warnings | |
| import os | |
| from . import agent | |
| # Ensure upload directory exists | |
| upload_dir = "/tmp/uploads" | |
| Path(upload_dir).mkdir(parents=True, exist_ok=True) | |
| # Read, write, execute for owner; read and execute for others | |
| os.chmod(upload_dir, 0o755) | |
| # Suppress Pydantic serialization warnings | |
| warnings.filterwarnings("ignore", message="Pydantic serializer warnings") | |