Spaces:
Sleeping
Sleeping
Download run.py from Adisri99/StyleExplorer: direct link, hf CLI and curl.
- Browser
- Download file 263 Bytes
-
https://huggingface.co/spaces/Adisri99/StyleExplorer/resolve/main/run.py
- Command line
-
hf download hf://spaces/Adisri99/StyleExplorer/run.py
-
curl -L -o run.py https://huggingface.co/spaces/Adisri99/StyleExplorer/resolve/main/run.py
263 Bytes
| import uvicorn | |
| import os | |
| # Create necessary directories | |
| os.makedirs("uploads", exist_ok=True) | |
| os.makedirs("results", exist_ok=True) | |
| if __name__ == "__main__": | |
| print("Starting Neural Style Transfer API") | |
| uvicorn.run("main:app", host="0.0.0.0", port=7860) |