Try live at : InsightXray Live
demo video : link to the demo video
This is the frontend component of the X-Ray project, which allows users to upload chest X-ray images and receive predictions of COVID-19, pneumonia, and normal status using a deep learning model.
To install and run the X-Ray Frontend locally, follow these steps:
- Clone this repository to your local machine.
- Install the necessary dependencies by running
npm install
. - Start the development server by running
npm start
.
The frontend should now be accessible in your browser at http://localhost:3000/
.
Once the development server is running, you can use the X-Ray Frontend to upload an image and receive predictions. To do this, follow these steps:
- Click on the "Choose File" button and select a chest X-ray image in either JPEG or PNG format.
- Click on the "Upload" button to submit the image to the backend API.
- Wait for the model to make predictions and for the results to be displayed on the page.
The X-Ray Frontend is designed to work with the X-Ray API, which should be running at http://localhost:8000/xray/
by default. If you need to change the URL of the API endpoint, you can modify the API_URL
variable in the src/App.js
file.
This project provides an API for classifying XRay images into three categories: Normal, Pneumonia, COVID-19. It is built using Django and PyTorch and uses a deep learning model trained on the ChestXRay14 dataset.
To get started with this project, clone the repository and navigate to the project directory.
git clone https://github.com/om-ashish-soni/chest-xray-to-desc-gfg-hackathon.git
cd xray-api
To install the dependencies required to run the API, run the following command:
pip install -r requirements.txt
To run the server, run the following command:
python manage.py runserver
To test the API, you can use a tool like Thunder Client or Postman to make requests to the server. The server has one endpoint at /xray/ that accepts POST requests with a file parameter that contains an XRay image file. The API will return a JSON response with the predicted class and probability. Deploying the API
To deploy the API, you can follow the instructions in the Django documentation.
This project was created by Om Ashishkumar Soni, Het Patel, Deep Patel , Rinil Parmar as a part of the X-Ray project, which was developed during the GeeksForGeeks cloud india hackathon course at Dharmsinh Desai University.