ozearkhan / Swasthya-Sampark

Swasthya-Sampark is a healthcare platform designed to connect patients with doctors for real-time symptom tracking, consultations, and AI-driven health advice. The project was developed as part of a hackathon entry for Technoverse 2024, where we reached the finalist stage among 500+ teams.
https://swasthya-sampark.me
MIT License
6 stars 1 forks source link

"Failed to Fetch Predictions" Error on Results Page in Cloned Branch #1

Open PragatheeshAshok opened 3 days ago

PragatheeshAshok commented 3 days ago

Description: When accessing the results page, an error message, "failed to fetch predictions. please try again," consistently appears. This prevents the predictions from being displayed correctly.

Details:

Error Message: "failed to fetch predictions. please try again." Location: Results page Branch: Cloned branch (not on personal fork) Logs: No relevant logs observed in the frontend or backend consoles. Environment:

Operating System: Windows 11 Node.js Version: 20.10.0 Additional Notes: Please let me know if there are specific files or components to review for debugging. I will also check for any related open issues, especially those concerning chatbot functionality, as they may provide relevant solutions or insights.

Thank you! WhatsApp Image 2024-11-12 at 21 18 53_d24685b7

ozearkhan commented 2 days ago

Thank you @PragatheeshAshok for bringing this up. The issue is due to missing instructions in the README to initialize 6ml/6ml/server.py for running predictions locally. This is on me , give me some time, I'll provide you instruction to set that locally and fix this issue .

ozearkhan commented 2 days ago

As earlier, I found out that the issue was because the ML route wasn’t initialized, and even after initialization, it wasn't hitting the correct route. I've fixed it and pushed the changes to the localhost branch localhost. Just follow the updated README.md to set it up again.

here are the key changes in the installation instructions that were missing earlier:

Ensure Python 3.8+ is installed.

Install pip for installing Python dependencies.

Install Python dependencies for the ./6ml/6mlserver:

cd ./6ml/6ml
pip install -r requirements.txt

Start the ML server:

cd ./6ml/6ml
python server.py

Screenshot 2024-11-13 194320

Let me know if you run into any other issues!