Spaces:
Running on Zero
Running on Zero
Download app.py from prabalGaur/Capstone: direct link, hf CLI and curl.
- Browser
- Download file 731 Bytes
-
https://huggingface.co/spaces/prabalGaur/Capstone/resolve/main/app.py
- Command line
-
hf download hf://spaces/prabalGaur/Capstone/app.py
-
curl -L -o app.py https://huggingface.co/spaces/prabalGaur/Capstone/resolve/main/app.py
731 Bytes
| """ | |
| Hugging Face Spaces entry point. | |
| Upload the entire week8/ folder into the Space repo root (this file becomes app.py), | |
| or copy week8/* into the Space and rename/move as needed. | |
| Required Space secrets: GROQ_API_KEY, HF_TOKEN, USE_MODAL_SPECIALIST=false | |
| """ | |
| import os | |
| import sys | |
| from pathlib import Path | |
| # When week8 is the Space root, agents/ and deal_agent_framework.py are siblings. | |
| ROOT = Path(__file__).resolve().parent | |
| if str(ROOT) not in sys.path: | |
| sys.path.insert(0, str(ROOT)) | |
| os.environ.setdefault("GRADIO_SERVER_NAME", "0.0.0.0") | |
| os.environ.setdefault("PRICER_PREPROCESSOR_MODEL", "groq/llama-3.1-8b-instant") | |
| from price_is_right import App | |
| if __name__ == "__main__": | |
| App().run() | |