medi-mind/
├── ai-service-example/
│ ├── AimlApiLLM.py
│ ├── index.html
│ ├── main.py # Entry point for the chat API
│ ├── requirements.txt
│ ├── styles.css
│ └── test.py
└── ...
Navigate to the frontend directory and install the required packages:
# Using Yarn
yarn install
# Or using NPM
npm install
Run the application with one of the following commands:
# Using Yarn
yarn run dev
# Or using NPM
npm run dev
- Press the Login button and register a new account.
- Ensure the account has a patient role.
The AI service is located in the ai-service-example
directory and contains the following files:
- AimlApiLLM.py: Contains the AIML API logic.
- index.html: Frontend interface for the chat.
- main.py: Entry point for the chat API.
- requirements.txt: Dependencies for the AI service.
- styles.css: Styles for the frontend interface.
- test.py: Additional tests or functionalities.
Ensure you have Python and pip installed. Then navigate to the ai-service-example
directory and install the required packages:
pip install -r requirements.txt
Run the service using the following command:
python main.py
Follow these steps to successfully set up and run both the frontend application and the AI service! If you encounter any issues, check the console for error messages for troubleshooting.