File size: 2,390 Bytes
ea106d7
 
 
 
 
 
 
 
 
 
 
 
 
e3305b3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
---
title: Rule-Based Task Planner
emoji: πŸ“š
colorFrom: yellow
colorTo: yellow
sdk: gradio
sdk_version: 5.33.0
app_file: app.py
pinned: false
short_description: Helps users break down high-level tasks into sub-steps
---

Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference

# πŸ“‹ Rule-Based Task Planner

A simple rule-based AI agent that helps users break down high-level tasks into actionable substeps. Built with Python and Gradio, this project demonstrates a basic agentic AI workflow using hard-coded logic β€” no machine learning involved.

---

## πŸš€ Demo

πŸ‘‰ [Launch the app on Hugging Face Spaces](https://huggingface.co/spaces/ujwal55/Rule-Based_Task_Planner)

---

## 🧠 What It Does

Enter a task like:

- `Plan a study session`
- `Plan a workout`
- `Plan a trip`
- `Plan a presentation`

And the app will return a predefined list of sub-tasks.

Example:

> **Input:** `Plan a study session`  
> **Output:**  
> 1. Choose a topic to study  
> 2. Gather necessary materials (books, notes, etc.)  
> 3. Allocate a time slot for the session  
> 4. Set specific goals  
> 5. Review notes and summarize key points

---

## πŸ›  Tech Stack

- **Python**
- **Gradio** – For building a lightweight UI
- **Rule Engine** – Dictionary-based mapping of tasks to steps

---

## 🧩 Agentic AI Concept

Although there's no ML model here, this project mimics agentic behavior using a **hard-coded rule-based planner**:
- Maps user intent to structured outputs
- Provides a decision-like structure via a rule engine

This is ideal for beginners looking to build agentic systems without needing a large language model.

---

## πŸ“ File Structure
app.py # Main app with Gradio interface
task_plannings.py # It consist rule_engine description
README.md 
requirements.txt # gradio

---

## πŸ§ͺ Run Locally

1. Clone the repo:
```bash
git clone https://huggingface.co/spaces/ujwal55/Rule-Based_Task_Planner
cd Rule-Based_Task_Planner
```

2. Install dependencies:
pip install -r requirements.txt

3. Run the app:
python app.py

πŸ’‘ Ideas to Extend
- Add a dropdown to choose common tasks
- Allow user-defined tasks with a fallback plan
- Use a small local LLM for few-shot task breakdowns

---

πŸ‘¨β€πŸ’» Built by @ujwal55

Let me know if you want a more advanced version with a chatbot-style interface or LLM integration later.

---