This repository contains my internship project work at Flexbox Technologies. I have developed a system that fills the patient details form automatically with the patient data extracted from pdf file.
MIT License
This is a Python project that helps you to read out important details of patients from PDF, PPTx or DOCx file that you have uploaded and it generates the output which helps to fill the form automatically. The project is built using Python, HTML, CSS, JS, and Streamlit framework.
pip install virtualenv
python3 -m venv env
or
virtualenv env
.\env\Scripts\Activate.ps1
pip install -r requirements.txt
Add your HUGGINGFACEHUB_API_TOKEN in .env
file and check the file name must be .env
otherwise rename the file to .env
. Also don't forget to update the file paths where it is mentioned.
Once you have installed the required dependencies, you can run the project using Streamlit. Streamlit provides an easy way to create interactive web applications in Python.
To start the application, run the following command:
python -m streamlit run app.py
or
streamlit run app.py
After opening the Streamlit web app, you can upload your PDF file and the LLM will generate the answers based on our predefined question set. These answers will be stored in a JSON file.
Then you have to open the related form's HTML file in vs code and press go live on server.
Then press the autofill button. This will automatically fill the form by fetching the answers from a JSON file by JavaScript. Please check out for missing values in the form and try to fill it manually.
This was our automatic form filling web app that can help any medical organizatioin to fill the details of the patient in the form. I hope you like the efforts that we have put into this project.
Here are some screenshots of the result.
Set-ExecutionPolicy unrestricted
streamlit run app.py --server.enableXsrfProtection false