Stéphanie Kamgnia Wonkap commited on
Commit
456fb95
1 Parent(s): 05179ce

requirements

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -26,7 +26,8 @@ def load_config():
26
 
27
  cfg= load_config()
28
  #load_dotenv("./src/.env")
29
- HF_TOKEN=os.environ.get["HF_TOKEN"]
 
30
  EMBEDDING_MODEL_NAME=cfg['EMBEDDING_MODEL_NAME']
31
  DATA_FILE_PATH=cfg['DATA_FILE_PATH']
32
  READER_MODEL_NAME=cfg['READER_MODEL_NAME']
@@ -43,7 +44,7 @@ user_query = st.text_input("Entrez votre question:")
43
  loader = PyPDFLoader(DATA_FILE_PATH)
44
  #loader = PyPDFDirectoryLoader(DATA_FILE_PATH)
45
  raw_document_base = loader.load()
46
- MARKDOWN_SEPARATORS = [
47
  "\n#{1,6} ",
48
  "```\n",
49
  "\n\\*\\*\\*+\n",
 
26
 
27
  cfg= load_config()
28
  #load_dotenv("./src/.env")
29
+ #HF_TOKEN=os.environ.get["HF_TOKEN"]
30
+ #st.write(os.environ["HF_TOKEN"] == st.secrets["HF_TOKEN"])
31
  EMBEDDING_MODEL_NAME=cfg['EMBEDDING_MODEL_NAME']
32
  DATA_FILE_PATH=cfg['DATA_FILE_PATH']
33
  READER_MODEL_NAME=cfg['READER_MODEL_NAME']
 
44
  loader = PyPDFLoader(DATA_FILE_PATH)
45
  #loader = PyPDFDirectoryLoader(DATA_FILE_PATH)
46
  raw_document_base = loader.load()
47
+ MARKDOWN_SEPARATORS = [
48
  "\n#{1,6} ",
49
  "```\n",
50
  "\n\\*\\*\\*+\n",