[Python] Problem using flask python backend to interface with react frontend

Discussão em 'Python' iniciado por Stack, Março 2, 2025.

  1. Stack

    Stack Membro Participativo

    I am trying to set up a RAG that uses a react frontend to retrieve the user's input similar to how chatgpt allows you to ask a question. However, when I try to run both the python server and react app, the I get an error saying that there are no modules installed (the dependencies needed to run the python file).

    When I execute the python file in the command line on its own, it works fine. My package.json file looks like this

    :scripts": { "start": "concurrently "react-scripts start" "python server.py"", "build": "react-scripts build", "test": "react-scripts test", "eject": "react-scripts eject" },

    When I run python rag.py which is the main file on its own everything works, but when I run npm start it doesn't find the modules

    Continue reading...

Compartilhe esta Página