Update src/streamlit_app.py
Browse files831 unmodified lines832833834835836837838839840841831 unmodified lines# --- Call HF Llama-3-70B-Instruct API for summary ---import requestsHF_TOKEN = st.secrets.get("HF_TOKEN", os.getenv("HF_TOKEN"))if not HF_TOKEN:st.error("HF_TOKEN not found in secrets or environment.")else:API_URL = "https://api-inference.huggingface.co/models/meta-llama/Llama-3-70B-Instruct"headers = {"Authorization": f"Bearer {HF_TOKEN}"}prompt = f"""831 unmodified lines832833834835836837838839840841842831 unmodified lines# --- Call HF Llama-3-70B-Instruct API for summary ---import requestsHF_TOKEN = os.getenv("HF_TOKEN")if not HF_TOKEN:st.error("HF_TOKEN not found in secrets or environment.")else:st.success("HF_TOKEN detected successfully.")API_URL = "https://api-inference.huggingface.co/models/meta-llama/Llama-3-70B-Instruct"headers = {"Authorization": f"Bearer {HF_TOKEN}"}prompt = f"""
src/streamlit_app.py+2-1