Execução do Projeto3.py

Home Forums Domine LLMs com LangChain Execução do Projeto3.py

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #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:8501

    Tempo: 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 variable TF_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

    #46175
    Gabriel Alves
    Keymaster

      Olá 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.

    Viewing 2 posts - 1 through 2 (of 2 total)
    • You must be logged in to reply to this topic.