Update src/streamlit_app.py
Browse files- src/streamlit_app.py +2 -1
src/streamlit_app.py
CHANGED
|
@@ -832,10 +832,11 @@ with tabs[4]:
|
|
| 832 |
|
| 833 |
# --- Call HF Llama-3-70B-Instruct API for summary ---
|
| 834 |
import requests
|
| 835 |
-
HF_TOKEN =
|
| 836 |
if not HF_TOKEN:
|
| 837 |
st.error("HF_TOKEN not found in secrets or environment.")
|
| 838 |
else:
|
|
|
|
| 839 |
API_URL = "https://api-inference.huggingface.co/models/meta-llama/Llama-3-70B-Instruct"
|
| 840 |
headers = {"Authorization": f"Bearer {HF_TOKEN}"}
|
| 841 |
prompt = f"""
|
|
|
|
| 832 |
|
| 833 |
# --- Call HF Llama-3-70B-Instruct API for summary ---
|
| 834 |
import requests
|
| 835 |
+
HF_TOKEN = os.getenv("HF_TOKEN")
|
| 836 |
if not HF_TOKEN:
|
| 837 |
st.error("HF_TOKEN not found in secrets or environment.")
|
| 838 |
else:
|
| 839 |
+
st.success("HF_TOKEN detected successfully.")
|
| 840 |
API_URL = "https://api-inference.huggingface.co/models/meta-llama/Llama-3-70B-Instruct"
|
| 841 |
headers = {"Authorization": f"Bearer {HF_TOKEN}"}
|
| 842 |
prompt = f"""
|