File size: 7,467 Bytes
03994ef
 
 
 
b47c32b
03994ef
61b9e03
6d7e3de
03994ef
932bfc3
549ece0
28be9e4
 
 
 
 
03994ef
 
 
 
 
 
d17a22d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
e51d556
d17a22d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
c545888
 
 
 
d17a22d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
17d4110
d17a22d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
28be9e4
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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
---
title: Outage Odyssey
emoji: πŸ¦€
colorFrom: gray
colorTo: pink
sdk: docker
app_port: 7860
pinned: false
license: apache-2.0
short_description: Transform boring incidents into fun learning experiences.
tags:
- mcp-server-track
- agent-demo-track
- custom-component-track
thumbnail: >-
  https://cdn-uploads.huggingface.co/production/uploads/67af2623dad5fcb9007967e4/8CjcV_wvvnQKHmFNSGwCz.png
---
tags:
  - mcp-server-track
  - agent-demo-track
  - custom-component-track
---
# 🚨 Outage Odyssey 🧩

> Transform boring IT incidents into hilarious learning experiences!

**Outage Odyssey** is an innovative hackathon project that converts mundane IT incident reports into engaging, educational comic stories. By leveraging AI agents and visual generation, it transforms technical troubleshooting into an entertaining and memorable learning experience.

## 🎯 What it Does

Outage Odyssey takes your IT incidents through a magical transformation:

1. **πŸ” Analyze** - Deep dive into your incident details
2. **🧩 Find** - Identify the root cause with precision
3. **πŸ› οΈ Solve** - Generate actionable solution recommendations
4. **πŸ“š Create** - Craft entertaining comic narratives
5. **🎨 Generate** - Produce comic-style visual panels
6. **🎬 Deliver** - Present as an educational comic strip

## ✨ Key Features

- **Smart Incident Analysis** - Automatically categorizes and analyzes IT incidents
- **Root Cause Detection** - Uses AI to identify underlying problems
- **Solution Recommendations** - Generates actionable step-by-step resolution guides
- **Comic Story Generation** - Transforms technical details into engaging narratives
- **Visual Comic Panels** - Generates comic-style illustrations
- **Multi-format Support** - Handles text, PDFs, logs, and documentation
- **Interactive UI** - Beautiful Gradio interface with incident templates
- **Educational Focus** - Makes learning from failures fun and memorable

## Demo Video Link
Here is the demo video link: https://www.loom.com/share/93182321fd5b40afa5d20696e61e880b?sid=0bf3c689-70ef-4343-ae8f-dd8d492ff49c

## πŸš€ Quick Start

### Installation
```bash
git clone https://huggingface.co/Agents-MCP-Hackathon/OutageOdyssey
cd OutageOdyssey
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
```
Running the MCP server
```bash
python mcp_server.py
```
Running the Gradio App locally
```bash
python app.py
```
### Example Incident Input

```
🚨 Server Outage Incident
Incident ID: INC-2024-001
Title: Production Server Unresponsive
Severity: Critical
Description: Main application server became unresponsive at 14:30 UTC
Impact: 500+ users affected, business operations halted
Symptoms: High CPU usage, memory exhaustion
Actions taken: Attempted restart, no success
```

See  ![sample_incidents.md](./sample_incidents.md) for more examples.


## πŸ› οΈ Technical Architecture

The project is built on several key components:

- **Agent Framework**: Uses `smolagents` for multi-step AI reasoning
- **UI Framework**: Custom Gradio interface with comic-themed styling
- **Image Processing**: PIL integration for comic panel generation
- **File Handling**: Support for various incident report formats
- **Streaming**: Real-time agent response streaming


## 🎨 Supported File Types

Upload your incident documentation in various formats:
- `.pdf` - Incident reports
- `.docx` - Documentation
- `.txt` - Plain text logs
- `.json` - Structured data
- `.log` - System logs
- `.csv` - Data exports
- `.xlsx` - Spreadsheets

## 🎭 How It Works

1. **Input**: Describe your incident or upload documentation
2. **Analysis**: AI agent analyzes symptoms and context
3. **Root Cause**: Identifies underlying technical issues
4. **Solution**: Generates step-by-step resolution recommendations
5. **Story**: Creates an entertaining comic narrative
6. **Visuals**: Generates comic-style illustrations
7. **Output**: Delivers complete educational comic strip

## πŸŽͺ Example Outputs

The system transforms this:
> "Database queries timing out, users reporting slow page loads"

Into this:
> 🎭 **Comic Story**: "The Tale of the Grumpy Database Dragon who was hoarding all the memory until the brave DevOps Knight optimized the queries!"

Complete with comic panels showing the "Database Dragon" and resolution steps!
### The Tale of the Grumpy Database Dragon
![The Tale of the Grumpy Database Dragon](./Examples/db_kingdom.png)


## Some More Example Output Images ....

### The Database Resource Exhaustion Case
![The Database Resource Exhaustion Case](./Examples/db_resource_exhaustion.png)
### The Great Banking BlackOut 
![The Great Banking BlackOut](./Examples/db_issue.png)
### The Epic Server Room Flood 
![The Epic Server Room Flood](./Examples/epic_flood.png)
### The Mystery of uneven User flow
![The Mystery of uneven User flow](./Examples/uneven_user_flow_high_latency.png)
### Finally, Issue Resolved 
![Finally Issue Resolved](./Examples/finally_issue_resolved.png)



## 🌟 Hackathon Integration

This project was specifically designed for Gradio Agents & MCP Hackathon  featuring:

### πŸ† **Technologies**

- **HuggingFace** - AI model hosting and deployment
- **Gradio** - Interactive web interface framework
- **MCP** - Model Context Protocol integration
- **Anthropic** - Claude AI models for reasoning root cause analysis
- **OpenAI** - GPT models and image generation
- **smolagents** - Multi-step agent framework
- **Nebius** - Cloud infrastructure and compute.
- **Mistral** - Advanced language models and AI reasoning
- **Hyperbolic** - High-performance AI inference platform


### 🎯 **System Features**

- **πŸ€– AI/ML Innovation** - Novel use of agents for IT education
- **🎨 Creative Tech** - Unique combination of technical analysis and storytelling
- **πŸ“š EdTech** - Making technical learning engaging and memorable
- **πŸ› οΈ DevOps Tools** - Practical utility for IT professionals


### Cloud Deployment
Compatible with major platforms:
- Hugging Face Spaces
- Google Colab
- AWS/Azure/GCP
- Nebius Cloud

## βž• Enhancements

This project can be extended with:

- Additional incident categories
- More visual styles
- Integration with monitoring tools
- Multi-language support
- Advanced root cause algorithms
- Auto Solution/fix applying tools
- Incident to Animated Video generation

## πŸ“„ License

Open source hackathon project - see individual component licenses.

## πŸŽ‰ Acknowledgments

Special thanks to our hackathon sponsors who made this creative fusion of AI, education, and humor possible:

- **[HuggingFace](https://huggingface.co/)** - AI model hosting and deployment
- **[Gradio](https://gradio.app/)** - Interactive web interface framework
- **[MCP](https://modelcontextprotocol.io/)** - Model Context Protocol integration
- **[Anthropic](https://anthropic.com/)** - Claude AI models for reasoning
- **[OpenAI](https://openai.com/)** - GPT models and image generation
- **[smolagents](https://github.com/huggingface/smolagents)** - Multi-step agent framework
- **[Nebius](https://nebius.com/)** - Cloud infrastructure and compute
- **[Mistral](https://mistral.ai/)** - Advanced language models and AI reasoning
- **[Hyperbolic](https://hyperbolic.xyz/)** - High-performance AI inference platform
- **[Modal](https://modal.com/)** - Serverless cloud computing for AI workloads

---

**πŸš€ Built for the Gradio Agents MCP Hackathon**

*Making IT incidents fun to learn from, one comic at a time!* 🎭