Fill your Google Forms swiftly! ✨
Swift Forms is a project that leverages machine learning to enhance the Google Forms experience. By using a FastAPI backend with Python and a Chrome extension for the frontend, this tool allows users to quickly fill out Google Forms. 📝
- FastAPI Backend: Powered by Python 3.12.7, the backend utilizes machine learning models for answering questions.
- Chrome Extension: A lightweight frontend component to integrate with Google Forms directly in the browser.
- ML-Driven Responses: Swiftly generate answers for form questions using intelligent algorithms. 🤖
-
Clone the repository:
git clone https://github.com/sahilsh-dev/Swift-Forms.git cd Swift-Forms/backend
-
Install dependencies:
uv (recommended)
You can install uv from here
uv sync source .venv/bin/activate # For Unix/MacOS .venv\Scripts\activate # For Windows
pip
Make sure you have python 3.12 installedpython3 -m venv .venv source .venv/bin/activate # For Unix/MacOS .venv\Scripts\activate # For Windows pip install -r requirements.txt
-
Run the backend server:
fastapi dev app.py
The server should now be running at http://127.0.0.1:8000
-
Install Docker:
Follow the official Docker installation guide for your operating system. -
Build the Docker Image:
Run the following command to build the Docker image:docker build -t swiftforms-server .
-
Run the Docker Container:
Use the following command to start the container:docker run -v hf-models:/cache/huggingface -p 8000:8000 -it swiftforms-server
-
Access the Application:
Open your browser and navigate to http://localhost:8000
Note
For Windows Users 🪟
- Ensure that Docker Desktop is installed and running.
- If you need to map a specific directory to the container (instead of using a named volume), use the Windows-style absolute path for the
-v
flag:
docker run -v C:\path\to\cache:/cache/huggingface -p 8000:8000 -it swiftforms-server
- Navigate to the
frontend
folder in the project directory. - Open Google Chrome and navigate to
chrome://extensions
. - Enable Developer mode (toggle in the top right).
- Click Load unpacked and select the
frontend
folder. - The Chrome extension should now be loaded and ready to use. 🎉
- Click the extension to open a sidepanel and fill the knowlege base based on which questions will be answered.
- Launch the FastAPI backend as described above.
- Open your browser and ensure the Swift Forms extension is active.
- Navigate to a Google Form, and click on Fill answers in the extension sidepanel.
We welcome contributions to Swift Forms! To contribute:
- Fork the repository.
- Create a new branch for your feature or bugfix.
- Submit a pull request with a detailed description of your changes.
For any questions or support, you can contact me.
Enjoy using Swift Forms to make your Google Forms experience seamless! 🚀