Downloads · 30 days
0
drixo/multilingual-doc-assistant
multilingual-doc-assistant is a text-to-speech model from drixo. Use it when you need text read aloud.
Agent-style model for explaining documents, answering questions, and responding conversationally in:
Downloads · 30 days
0
Access
Public
Updated Feb 18, 2026
Repo size
—
Likes
0
Public
Click a slice to open those files.
.py9 KB · 69%
From the Hugging Face model README
Agent-style model for explaining documents, answering questions, and responding conversationally in:
Base model: bigscience/bloom-560m on Hugging Face.
To run this as a Hugging Face Space (browser chat UI):
Create a Space at huggingface.co/new-space:
app.py and requirements.txt).Use your fine-tuned model (after training and pushing):
python train.pyexport HF_REPO_ID=your-username/multilingual-doc-assistant then python push_to_hub.pyHF_MODEL_ID = your-username/multilingual-doc-assistantThe Space runs app.py and serves the Gradio chat interface.
cd multilingual-doc-assistant
pip install -r requirements.txt
python train.py
Saves the fine-tuned model and tokenizer to ./multilingual-doc-model. You can run from any directory; paths are relative to the script.
After training:
python test_model.py
Uses a Spanish prompt by default. You can edit the prompt in test_model.py to try other languages or questions.
Add more examples in train.jsonl (one JSON object per line with a "text" key). Use the same User: / Assistant: format so the model learns the conversational style.
pip install -r requirements.txt
python app.py
Then open the URL Gradio prints (e.g. http://127.0.0.1:7860). To use your trained model locally, set HF_MODEL_ID to a Hub repo or a local path; for a local folder use the path to multilingual-doc-model (transformers supports local paths).