Skip to content

Flask-based backend that serves as the core of the DeezForms application.

Notifications You must be signed in to change notification settings

raaasin/deezforms-backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DeezForms Backend

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.

Table of Contents

Getting Started

To get started with the DeezForms backend, follow these steps:

  1. Clone this repository to your local machine:
git clone https://github.com/raaasin/deezforms-backend
  1. Install the required dependencies:
pip install -r requirements.txt
  1. Run the Flask application:
python app.py

The backend server will start on http://0.0.0.0:5000/.

Usage

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.

API Endpoints

1. GET /

  • Description: A simple endpoint to check if the backend is running.
  • Response: JSON response with a message.

2. POST /api/custom

  • 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"
}

About

Flask-based backend that serves as the core of the DeezForms application.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published