This repository contains the backend code for the DeezForms application. DeezForms is an application that leverages the RoBERTa model for natural language processing to provide custom responses to user-defined queries. This Flask-based backend serves as the core of the DeezForms application.
To get started with the DeezForms backend, follow these steps:
- Clone this repository to your local machine:
git clone https://github.com/raaasin/deezforms-backend
- Install the required dependencies:
pip install -r requirements.txt
- Run the Flask application:
python app.py
The backend server will start on http://0.0.0.0:5000/
.
The DeezForms backend provides an API for custom queries. You can use this API to send JSON data with query keys and receive responses from the RoBERTa model. The responses are generated based on the provided queries.
- Description: A simple endpoint to check if the backend is running.
- Response: JSON response with a message.
- Description: Send a JSON payload with custom queries to get responses.
- Request:
- Method: POST
- Headers:
Content-Type: application/json
- Body: JSON data with query keys.
Example JSON Request:
{
"Name": "",
"Why do you want this job": ""
}
- Response: JSON response with responses to the provided queries.
Example JSON Response:
{
"Name": "Nisar Ahmed",
"Why do you want this job": "I am talented"
}