Home › Forums › Domine LLMs com LangChain › Execução do Projeto3.py
- This topic has 1 reply, 2 voices, and was last updated 6 months, 2 weeks ago by
Gabriel Alves.
- AuthorPosts
- 30 de September de 2024 at 16:29 #46164
Estou tentando executar o projeto3.py e estou com o seguinte erro:
No CMD:
C:\Users\cesar.rocha\Documents\IA_Expert\LLM\Domine LLMs com LangChain\Projetos>streamlit run projeto3.py
You can now view your Streamlit app in your browser.
Local URL: http://localhost:8501
Network URL: http://10.2.252.127:8501Tempo: 0.0011670589447021484
2024-09-30 16:16:13.688597: I tensorflow/core/util/port.cc:153] oneDNN custom operations are on. You may see slightly different numerical results due to floating-point round-off errors from different computation orders. To turn them off, set the environment variableTF_ENABLE_ONEDNN_OPTS=0
.Outro erro, este agora na home do projeto3.py
ImportError: Could not import sentence_transformers python package. Please install it with
pip install sentence-transformers
.PS>.Informo que criei esta variavel de ambiente local
2 de October de 2024 at 09:35 #46175Olá Cesar!
Para resolver o primeiro erro, use o seguinte código no início de seu script:
import os os.environ['TF_ENABLE_ONEDNN_OPTS'] = '0'
E quanto ao segundo erro, ele ocorre pois não foi localizada a biblioteca em seu ambiente. Para resolver, execute o comando abaixo no terminal:
pip install sentence-transformers
E depois volte a executar o código.
- This reply was modified 6 months, 2 weeks ago by
Gabriel Alves.
- This reply was modified 6 months, 2 weeks ago by
- AuthorPosts
- You must be logged in to reply to this topic.