Update rag_hf.py
Browse files
rag_hf.py
CHANGED
@@ -24,10 +24,6 @@ st.set_page_config(
|
|
24 |
# === CONFIGURATION ===
|
25 |
ENDPOINT_URL = "https://lxgkooi70bj7diiu.us-east-1.aws.endpoints.huggingface.cloud"
|
26 |
HF_API_TOKEN = os.getenv("HF_API_TOKEN")
|
27 |
-
if not HF_API_TOKEN:
|
28 |
-
st.error("⚠️ No se cargó el token HF_API_TOKEN desde los Secrets.")
|
29 |
-
else:
|
30 |
-
st.success("✅ Token cargado correctamente.")
|
31 |
EMBEDDING_MODEL = "intfloat/multilingual-e5-base"
|
32 |
DEVICE = "cuda" if torch.cuda.is_available() else "cpu"
|
33 |
EX = Namespace("http://example.org/lang/")
|
|
|
24 |
# === CONFIGURATION ===
|
25 |
ENDPOINT_URL = "https://lxgkooi70bj7diiu.us-east-1.aws.endpoints.huggingface.cloud"
|
26 |
HF_API_TOKEN = os.getenv("HF_API_TOKEN")
|
|
|
|
|
|
|
|
|
27 |
EMBEDDING_MODEL = "intfloat/multilingual-e5-base"
|
28 |
DEVICE = "cuda" if torch.cuda.is_available() else "cpu"
|
29 |
EX = Namespace("http://example.org/lang/")
|