Downloads · 30 days
0
shivrajtaware/RTIgen
RTIgen is a machine learning model from shivrajtaware. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
Flask-based PDF generator for RTI (Right to Information) applications with professional formatting.
Downloads · 30 days
0
Access
Public
Updated Jan 8, 2026
Repo size
—
Likes
0
Public
Click a slice to open those files.
.md5 KB · 42%
From the Hugging Face model README
Flask-based PDF generator for RTI (Right to Information) applications with professional formatting.
# Navigate to the RTI Generator directory
cd temp/RTI_Generator
# Create a virtual environment
python -m venv venv
# Activate virtual environment
# Windows:
venv\Scripts\activate
# macOS/Linux:
source venv/bin/activate
# Install dependencies
pip install -r requirements.txt
python app.py
The service will be available at http://localhost:5001
Health check:
curl http://localhost:5001/
Generate RTI PDF:
curl -X POST http://localhost:5001/api/generate-rti \
-H "Content-Type: application/json" \
-d '{
"applicant_name": "John Doe",
"guardian_name": "Jane Doe",
"address": "123 Main Street, Mumbai",
"phone": "022-12345678",
"mobile": "9876543210",
"fee_amount": "10",
"payment_mode": "Cash",
"payment_date": "29/12/2025",
"favoring": "Public Information Officer",
"photocopy_amount": "2",
"num_pages": "5",
"cd_amount": "",
"bpl_status": "No",
"bpl_certificate": "",
"date": "29/12/2025"
}' \
--output test_rti.pdf
Initialize Git Repository (if not already done):
cd temp/RTI_Generator
git init
git add .
git commit -m "Initial RTI generator setup"
Create GitHub Repository:
nyaysetu-rti-generator)git remote add origin https://github.com/YOUR_USERNAME/nyaysetu-rti-generator.git
git branch -M main
git push -u origin main
Deploy on Render:
render.yaml configurationGet Your Service URL:
https://nyaysetu-rti-generator.onrender.comGET /Health check endpoint.
Response:
{
"status": "healthy",
"service": "RTI Application Generator",
"version": "1.0.0"
}
POST /api/generate-rtiGenerate RTI application PDF.
Request Body:
{
"applicant_name": "string (required)",
"guardian_name": "string (required)",
"address": "string (required)",
"phone": "string",
"mobile": "string (required)",
"fee_amount": "string",
"payment_mode": "string",
"payment_date": "string",
"favoring": "string",
"photocopy_amount": "string",
"num_pages": "string",
"cd_amount": "string",
"bpl_status": "string",
"bpl_certificate": "string",
"date": "string"
}
Response:
application/pdfAfter deploying to Render, update your Next.js .env.local:
RTI_API_URL=https://nyaysetu-rti-generator.onrender.com
RTI_Generator/
├── app.py # Flask application with API endpoints
├── generate_rti.py # PDF generation logic
├── requirements.txt # Python dependencies
├── render.yaml # Render deployment configuration
├── .gitignore # Git ignore rules
├── README.md # This file
├── pdf_templates/ # PDF template files
│ └── rti_background.pdf
└── output/ # Generated PDFs (gitignored)
pdf_templates/rti_background.pdf existsPart of the NyaySetu legal assistance platform. #� �r�t�i�-�g�e�n�e�r�a�t�i�o�n�-�b�a�c�k�e�n�d� � �