Spaces:
Running on Zero
Running on Zero
File size: 731 Bytes
d798cdf | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | """
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()
|