javiervz commited on
Commit
87f954d
verified
1 Parent(s): 196a0dc

Update rag_hf.py

Browse files
Files changed (1) hide show
  1. rag_hf.py +12 -12
rag_hf.py CHANGED
@@ -10,6 +10,18 @@ from rdflib import Graph as RDFGraph, Namespace
10
  from sentence_transformers import SentenceTransformer
11
  #from dotenv import load_dotenv
12
 
 
 
 
 
 
 
 
 
 
 
 
 
13
  # === CONFIGURATION ===
14
  #load_dotenv()
15
  ENDPOINT_URL = "https://api-inference.huggingface.co/models/HuggingFaceH4/zephyr-7b-beta"
@@ -23,18 +35,6 @@ EMBEDDING_MODEL = "intfloat/multilingual-e5-base"
23
  DEVICE = "cuda" if torch.cuda.is_available() else "cpu"
24
  EX = Namespace("http://example.org/lang/")
25
 
26
- # === STREAMLIT UI CONFIG ===
27
- st.set_page_config(
28
- page_title="Atlas de Lenguas: Lenguas Ind铆genas Sudamericanas",
29
- page_icon="馃實",
30
- layout="wide",
31
- initial_sidebar_state="expanded",
32
- menu_items={
33
- 'About': "## An谩lisis con IA de lenguas ind铆genas en peligro\n"
34
- "Esta aplicaci贸n integra grafos de conocimiento de Glottolog, Wikipedia y Wikidata."
35
- }
36
- )
37
-
38
  # === CUSTOM CSS ===
39
  st.markdown("""
40
  <style>
 
10
  from sentence_transformers import SentenceTransformer
11
  #from dotenv import load_dotenv
12
 
13
+ # === STREAMLIT UI CONFIG ===
14
+ st.set_page_config(
15
+ page_title="Atlas de Lenguas: Lenguas Ind铆genas Sudamericanas",
16
+ page_icon="馃實",
17
+ layout="wide",
18
+ initial_sidebar_state="expanded",
19
+ menu_items={
20
+ 'About': "## An谩lisis con IA de lenguas ind铆genas en peligro\n"
21
+ "Esta aplicaci贸n integra grafos de conocimiento de Glottolog, Wikipedia y Wikidata."
22
+ }
23
+ )
24
+
25
  # === CONFIGURATION ===
26
  #load_dotenv()
27
  ENDPOINT_URL = "https://api-inference.huggingface.co/models/HuggingFaceH4/zephyr-7b-beta"
 
35
  DEVICE = "cuda" if torch.cuda.is_available() else "cpu"
36
  EX = Namespace("http://example.org/lang/")
37
 
 
 
 
 
 
 
 
 
 
 
 
 
38
  # === CUSTOM CSS ===
39
  st.markdown("""
40
  <style>