Fecalisboa commited on
Commit
6d330c9
·
verified ·
1 Parent(s): 660ad36

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -10
app.py CHANGED
@@ -48,16 +48,6 @@ from llama_index.core.schema import BaseNode, TextNode
48
  # Obtenha o token da variável de ambiente
49
  api_token = os.getenv("HF_TOKEN")
50
 
51
- # Verifique se o token foi obtido corretamente
52
- if api_token is None:
53
- raise ValueError("O token de API não foi encontrado. Verifique se a variável de ambiente HF_TOKEN está configurada corretamente.")
54
-
55
- # Função para ofuscar o token
56
- def obscure_token(token, num_visible=4):
57
- return '*' * (len(token) - num_visible) + token[-num_visible:]
58
-
59
- # Exibir o token de API ofuscado (apenas para debug; remova em produção)
60
- print(f"Token de API: {obscure_token(api_token)}")
61
 
62
  # default_persist_directory = './chroma_HF/'
63
  list_llm = ["mistralai/Mistral-7B-Instruct-v0.3", "mistralai/Mixtral-8x7B-Instruct-v0.1", "mistralai/Mistral-7B-Instruct-v0.1",
 
48
  # Obtenha o token da variável de ambiente
49
  api_token = os.getenv("HF_TOKEN")
50
 
 
 
 
 
 
 
 
 
 
 
51
 
52
  # default_persist_directory = './chroma_HF/'
53
  list_llm = ["mistralai/Mistral-7B-Instruct-v0.3", "mistralai/Mixtral-8x7B-Instruct-v0.1", "mistralai/Mistral-7B-Instruct-v0.1",