A comprehensive Gradio-based interface for running multiple state-of-the-art Vision-Language Models (VLMs) for Optical Character Recognition (OCR) and Visual Question Answering (VQA) tasks.
2
stars
11
commits
Python
primary language
Jul 19, 2025
updated
A comprehensive Gradio-based interface for running multiple state-of-the-art Vision-Language Models (VLMs) for Optical Character Recognition (OCR) and Visual Question Answering (VQA) tasks. This application supports both image and video inference across 5 different pre-trained models.
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118
pip install transformers
pip install gradio
pip install spaces
pip install opencv-python
pip install pillow
pip install numpy
git clone https://github.com/PRITHIVSAKTHIUR/Multimodal-VLMs.git
cd Multimodal-VLMs
python app.py
MAX_INPUT_TOKEN_LENGTH: Maximum input token length (default: 4096)Once launched, access the interface through your browser at the provided local URL.
generate_image(
model_name: str, # Selected model identifier
text: str, # Query text
image: Image.Image, # PIL Image object
max_new_tokens: int = 1024,
temperature: float = 0.6,
top_p: float = 0.9,
top_k: int = 50,
repetition_penalty: float = 1.2
)
generate_video(
model_name: str, # Selected model identifier
text: str, # Query text
video_path: str, # Path to video file
max_new_tokens: int = 1024,
temperature: float = 0.6,
top_p: float = 0.9,
top_k: int = 50,
repetition_penalty: float = 1.2
)
This project is open-source and available under the MIT License.
For issues and questions:
11 commits
Python
100.0%
A comprehensive Gradio-based interface for running multiple state-of-the-art Vision-Language Models (VLMs) for Optical Character Recognition (OCR) and Visual Question Answering (VQA) tasks.
2
stars
11
commits
Python
primary language
Jul 19, 2025
updated
A comprehensive Gradio-based interface for running multiple state-of-the-art Vision-Language Models (VLMs) for Optical Character Recognition (OCR) and Visual Question Answering (VQA) tasks. This application supports both image and video inference across 5 different pre-trained models.
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118
pip install transformers
pip install gradio
pip install spaces
pip install opencv-python
pip install pillow
pip install numpy
git clone https://github.com/PRITHIVSAKTHIUR/Multimodal-VLMs.git
cd Multimodal-VLMs
python app.py
MAX_INPUT_TOKEN_LENGTH: Maximum input token length (default: 4096)Once launched, access the interface through your browser at the provided local URL.
generate_image(
model_name: str, # Selected model identifier
text: str, # Query text
image: Image.Image, # PIL Image object
max_new_tokens: int = 1024,
temperature: float = 0.6,
top_p: float = 0.9,
top_k: int = 50,
repetition_penalty: float = 1.2
)
generate_video(
model_name: str, # Selected model identifier
text: str, # Query text
video_path: str, # Path to video file
max_new_tokens: int = 1024,
temperature: float = 0.6,
top_p: float = 0.9,
top_k: int = 50,
repetition_penalty: float = 1.2
)
This project is open-source and available under the MIT License.
For issues and questions:
11 commits
Python
100.0%