Spaces:
Runtime error
Runtime error
Download hello.py from Cyren4/MarketingGenAI: direct link, hf CLI and curl.
- Browser
- Download file 311 Bytes
-
https://huggingface.co/spaces/Cyren4/MarketingGenAI/resolve/main/hello.py
- Command line
-
hf download hf://spaces/Cyren4/MarketingGenAI/hello.py
-
curl -L -o hello.py https://huggingface.co/spaces/Cyren4/MarketingGenAI/resolve/main/hello.py
311 Bytes
| import os | |
| from flask import Flask | |
| app = Flask(__name__) | |
| def hello_world(): | |
| """Example Hello World route.""" | |
| name = os.environ.get("NAME", "World") | |
| return f"Hello {name}!" | |
| if __name__ == "__main__": | |
| app.run(debug=True, host="0.0.0.0", port=int(os.environ.get("PORT", 8080))) |