Spaces:
Sleeping
Sleeping
Download python_backend/main.py from VashuTheGreat2/ML-Learner: direct link, hf CLI and curl.
- Browser
- Download file 408 Bytes
-
https://huggingface.co/spaces/VashuTheGreat2/ML-Learner/resolve/main/python_backend/main.py
- Command line
-
hf download hf://spaces/VashuTheGreat2/ML-Learner/python_backend/main.py
-
curl -L -o main.py https://huggingface.co/spaces/VashuTheGreat2/ML-Learner/resolve/main/python_backend/main.py
408 Bytes
| import os | |
| from dotenv import load_dotenv | |
| dotenv_path = os.path.join(os.path.dirname(__file__), '..', '.env') | |
| load_dotenv(dotenv_path) | |
| import os | |
| os.environ['LANGCHAIN_PROJECT']="ML_Learner" | |
| os.environ["MLFLOW_TRACKING_USERNAME"] = "vanshsharma7832" | |
| from api.app import app | |
| import uvicorn as uv | |
| from logger import * | |
| if __name__ == "__main__": | |
| uv.run("main:app", host="0.0.0.0", port=8000, reload=False) |