javiervz commited on
Commit
08b2d69
·
verified ·
1 Parent(s): 542468d

Update rag_hf.py

Browse files
Files changed (1) hide show
  1. rag_hf.py +0 -4
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/")