A Gradio-based demonstration for the Microsoft Fara-7B model, designed as a computer use agent. Users upload UI screenshots (e.g., desktop or app interfaces), provide task instructions (e.g., "Click on the search bar"), and receive parsed actions with visualized indicators overlaid on the image.
6
stars
7
commits
Python
primary language
Dec 8, 2025
updated
A Gradio-based demonstration for the Microsoft Fara-7B model, designed as a computer use agent. Users upload UI screenshots (e.g., desktop or app interfaces), provide task instructions (e.g., "Click on the search bar"), and receive parsed actions (clicks, types) with visualized indicators (circles and labels) overlaid on the image. Supports JSON-formatted tool calls for precise coordinate-based interactions.
Demo: https://huggingface.co/spaces/prithivMLmods/CUA-GUI-Operator
huggingface_hub).Clone the repository:
git clone https://github.com/PRITHIVSAKTHIUR/Fara-7B-Action-Points-Demo.git
cd Fara-7B-Action-Points-Demo
Install dependencies:
Create a requirements.txt file with the following content, then run:
pip install -r requirements.txt
requirements.txt content:
transformers==4.57.1
webdriver-manager
huggingface_hub
python-dotenv
sentencepiece
qwen-vl-utils
gradio_modal
torchvision
matplotlib
accelerate
num2words
pydantic
requests
pillow
openai
spaces
einops
torch
peft
Start the application:
python app.py
The demo launches at http://localhost:7860 (or the provided URL if using Spaces).
Upload Image: Provide a UI screenshot (e.g., PNG of a desktop or app window).
Enter Task: Describe the action in the textbox (e.g., "Click on the start menu" or "Type 'Hello World' in the search box").
Execute: Click "Execute Agent" to run inference.
View Results:
torch.cuda.is_available(). Use torch.float32 if float16 OOM occurs.max_size in demo.queue() for higher traffic.qwen-vl-utils for image processing; test with examples.ssr_mode=True if gradients fail; check CSS for custom styles.Contributions encouraged! Fork, create a feature branch (e.g., for multi-step tasks), and submit PRs with tests. Focus areas:
Repository: https://github.com/PRITHIVSAKTHIUR/Fara-7B-Action-Points-Demo.git
Apache License 2.0. See LICENSE for details.
Built by Prithiv Sakthi. Report issues via the repository.
7 commits
Python
100.0%
A Gradio-based demonstration for the Microsoft Fara-7B model, designed as a computer use agent. Users upload UI screenshots (e.g., desktop or app interfaces), provide task instructions (e.g., "Click on the search bar"), and receive parsed actions with visualized indicators overlaid on the image.
6
stars
7
commits
Python
primary language
Dec 8, 2025
updated
A Gradio-based demonstration for the Microsoft Fara-7B model, designed as a computer use agent. Users upload UI screenshots (e.g., desktop or app interfaces), provide task instructions (e.g., "Click on the search bar"), and receive parsed actions (clicks, types) with visualized indicators (circles and labels) overlaid on the image. Supports JSON-formatted tool calls for precise coordinate-based interactions.
Demo: https://huggingface.co/spaces/prithivMLmods/CUA-GUI-Operator
huggingface_hub).Clone the repository:
git clone https://github.com/PRITHIVSAKTHIUR/Fara-7B-Action-Points-Demo.git
cd Fara-7B-Action-Points-Demo
Install dependencies:
Create a requirements.txt file with the following content, then run:
pip install -r requirements.txt
requirements.txt content:
transformers==4.57.1
webdriver-manager
huggingface_hub
python-dotenv
sentencepiece
qwen-vl-utils
gradio_modal
torchvision
matplotlib
accelerate
num2words
pydantic
requests
pillow
openai
spaces
einops
torch
peft
Start the application:
python app.py
The demo launches at http://localhost:7860 (or the provided URL if using Spaces).
Upload Image: Provide a UI screenshot (e.g., PNG of a desktop or app window).
Enter Task: Describe the action in the textbox (e.g., "Click on the start menu" or "Type 'Hello World' in the search box").
Execute: Click "Execute Agent" to run inference.
View Results:
torch.cuda.is_available(). Use torch.float32 if float16 OOM occurs.max_size in demo.queue() for higher traffic.qwen-vl-utils for image processing; test with examples.ssr_mode=True if gradients fail; check CSS for custom styles.Contributions encouraged! Fork, create a feature branch (e.g., for multi-step tasks), and submit PRs with tests. Focus areas:
Repository: https://github.com/PRITHIVSAKTHIUR/Fara-7B-Action-Points-Demo.git
Apache License 2.0. See LICENSE for details.
Built by Prithiv Sakthi. Report issues via the repository.
7 commits
Python
100.0%