https://github.com/prithivsakthiur/grab-doc
Chat Response Documentation
https://github.com/prithivsakthiur/grab-doc
documentation-tool docx-generator fpdf gradio hugging-face huggingface-hub mistral-7b pdf-generation python-docx text-mining txt-files
Last synced: 8 months ago
JSON representation
Chat Response Documentation
- Host: GitHub
- URL: https://github.com/prithivsakthiur/grab-doc
- Owner: PRITHIVSAKTHIUR
- License: apache-2.0
- Created: 2024-08-24T14:54:53.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-08-24T15:49:41.000Z (about 1 year ago)
- Last Synced: 2024-12-17T03:33:51.731Z (10 months ago)
- Topics: documentation-tool, docx-generator, fpdf, gradio, hugging-face, huggingface-hub, mistral-7b, pdf-generation, python-docx, text-mining, txt-files
- Language: Python
- Homepage: https://huggingface.co/spaces/prithivMLmods/GRAB-DOCv
- Size: 5 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
---
title: GRAB DOC
emoji: 👨🏻🚀
colorFrom: blue
colorTo: green
sdk: gradio
sdk_version: 4.41.0
app_file: app.py
pinned: false
license: creativeml-openrail-m
short_description: pdf, docx, txt
---Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
## Model Details
| Model Identifier | Description | Version |
|-------------------------------|-------------------------------------------------|---------|
| `mistralai/Mistral-7B-Instruct-v0.3` | A large language model fine-tuned for instruction-based tasks. | 0.3 |
## HTTPS
Make sure you have git-lfs installed (https://git-lfs.com)
git lfs install
git clone https://huggingface.co/spaces/prithivMLmods/GRAB-DOC
If you want to clone without large files - just their pointers
GIT_LFS_SKIP_SMUDGE=1 git clone https://huggingface.co/spaces/prithivMLmods/GRAB## SSH
Make sure you have git-lfs installed (https://git-lfs.com)
git lfs install
git clone git@hf.co:spaces/prithivMLmods/GRAB-DOC
If you want to clone without large files - just their pointers
GIT_LFS_SKIP_SMUDGE=1 git clone git@hf.co:spaces/prithivMLmods/GRAB-DOC
## Inference-Client```python
client = InferenceClient("mistralai/Mistral-7B-Instruct-v0.3")def format_prompt(message, history, system_prompt=None):
prompt = ""
for user_prompt, bot_response in history:
prompt += f"[INST] {user_prompt} [/INST]"
prompt += f" {bot_response} "
if system_prompt:
prompt += f"[SYS] {system_prompt} [/SYS]"
prompt += f"[INST] {message} [/INST]"
return prompt
```## DEMO GIF

## Dependencies
| Package | Version | Description |
|--------------------|-------------|-----------------------------------------------------|
| `gradio` | Latest | A library for building machine learning demos and applications. |
| `fpdf` | Latest | A Python class for generating PDF documents. |
| `python-docx` | Latest | A library for creating and updating Microsoft Word (.docx) files. |
| `huggingface-hub` | 0.24.6 | A library for interacting with the Hugging Face Hub to manage and share machine learning models and datasets. |.
.
.@prithivmlmods
### **Try It Out!**
| Hugging Face | [prithivMLmods](https://huggingface.co/prithivMLmods) |