Downloads · 30 days
4
1% of all-time downloads
Ashok75/GAKR-model
GAKR-model is a machine learning model from Ashok75. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
Downloads · 30 days
4
1% of all-time downloads
All-time downloads
670
Public
Repo size
26.7 GB
Likes
0
Public
Click a slice to open those files.
.gguf5.4 GB · 100%
From the Hugging Face model README
refer the space - ashok75-gakr.hf.space
GAKR AI is a local, privacy‑friendly chat assistant that runs entirely on your machine.
It combines a FastAPI backend, a modern web chat UI, and a file‑intelligence pipeline that can read and summarize many file types before generating natural‑language responses.
The assistant itself is text‑only. It never directly sees raw PDFs, images, audio, or videos.
Instead, specialized tools convert files into structured text summaries, and the language model reasons over that text.
dataupload/Upload multiple files at once:
dataupload/ by typelocalStorageproject_root/
├── run.py # FastAPI backend + template serving
├── load_model.py # Loads the language model once
├── generate.py # generate_response() wrapper
├── file_pipeline.py # File detection, storage, and summarization
├── templates/
│ ├── chat.html # Main chat interface
│ └── auth.html # Login / signup UI
├── dataupload/ # Created at runtime for uploads
│ ├── images/
│ ├── videos/
│ ├── audio/
│ ├── documents/
│ ├── tabular/
│ └── other/
└── requirements.txt
python -m venv .venv
source .venv/bin/activate # Linux / macOS
# or
.\.venv\Scripts\activate # Windows
pip install -r requirements.txt
requirements.txt
fastapi
uvicorn[standard]
python-multipart
torch
transformers
accelerate
safetensors
pandas
numpy
pdfplumber
pymupdf
python-docx
Pillow
pytesseract
openai-whisper
ffmpeg-python
Install via OS package manager (apt, brew, choco) or official installers.
python run.py
Expected output:
🚀 Starting GAKR AI Backend...
✅ Model initialized successfully
🌐 SERVER & CHAT LOCATION
🚀 CHAT INTERFACE: http://localhost:8080
🔧 API DOCUMENTATION: http://localhost:8080/docs
✅ CHAT.HTML SERVED: templates/chat.html
Navigate to:
http://localhost:8080
/api/analyzeRequest (multipart/form-data)
api_key (string, required)prompt (string, required)files (optional, multiple)Behavior
Response
{
"response": "natural-language answer here",
"context": {
"files": [
{
"original_name": "report.pdf",
"stored_path": "dataupload/documents/20241214_report.pdf",
"kind": "document",
"summary": {
"type": "document",
"char_count": 12345,
"preview": "First 4000 characters..."
}
}
]
},
"status": "success"
}
Handled by file_pipeline.py
Errors are stored per‑file and never crash the whole request.
?q=your+questionIdeas:
GAKR AI is an intelligence layer.
Tools translate reality (files, media, data) into structured language.
The language model turns that language into insight, reasoning, and action.