Neurocura AI is a Windows-based AI assistant designed to provide supportive, evidence-based information on neurological and cognitive health. The app is built using Python with PyQt6 for the graphical user interface and Google’s Generative AI for natural language responses.
• Overview
• Features
• Installation
• Configuration
• Usage
• Steps
• License
• Disclaimer
Neurocura AI helps both healthcare professionals and general users:
• Understand neurological conditions with clear explanations.
• Get wellness guidance and cognitive enhancement strategies.
• Prepare for medical appointments by explaining technical concepts in accessible language.
• Generate, edit, and maintain an interactive conversation history.
The application emphasizes responsible usage by including disclaimers advising users to consult healthcare professionals for personalized medical advice.
• Chat Interface: Interact with an AI assistant capable of answering questions about brain and neurological health.
• Message Editing: Edit your messages and view their edit history to refine questions for better responses.
• Dynamic Responses: Regenerates AI responses when a user edits a message.
• User-Friendly Layout: Utilizes tabs to separate the chat interface and application information.
• Detailed Guidance: Provides an educational interface geared toward both general users and healthcare professionals.
• Clear Disclaimer: Prominently displays a disclaimer that the tool is for educational purposes only.
Prerequisites
• Python 3.7 or later
• PyQt6
• google-generativeai
- Clone the Repository
git clone https://github.com/AwarewarAlmighty/neurocura-ai.git cd neurocura-ai - Create a Virtual Environment (optional but recommended):
python -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate - Install Dependecies:
pip install PyQt6 google-generativeai
The application requires an API key to access Google Generative AI services. Set your API key in your environment variables: • On Windows:
set API_KEY=your_api_key_here
Alternatively, you can set the API key in your IDE's run configurations or use a .env file with a package such as python-dotenv.
To run Neurocura AI, execute the main Python file:
python neurocura_ai.py
• Chat Interface: Type your query into the text input area and click the "Send Message" button. The AI assistant will process your message and display a response.
• Editing Messages: Right-click on any of your messages to edit the content. You can view previous versions by selecting "View Edit History."
• Clear Chat: Click the "Clear Chat" button to reset the conversation history.
• Information Tab: Learn more about the app’s capabilities, usage guidelines, and key features from the information tab.
• neurocura_ai.py – Main application script launching the PyQt interface.
• Message Class – Handles user and AI messages including storing original text for edit history.
• AIWorker Class – Runs the Google Generative AI calls in a separate thread to ensure a responsive UI.
• MessageWidget Class – Manages how each message is displayed in the chat list.
• NeurocuraApp Class – The main window handling UI, user interactions, and chat display features.
This project is licensed under the MIT License. See the LICENSE file for details.
Important: Neurocura AI is designed as an educational tool and informational resource, not a substitute for professional medical advice, diagnosis, or treatment. Always seek the advice of qualified healthcare professionals with any questions you may have regarding a medical condition.