File size: 948 Bytes
cfbcea8
 
 
 
 
 
 
a03066c
cfbcea8
 
 
 
c3af845
 
 
 
 
 
 
 
 
 
fa03eb1
 
c3af845
 
 
 
 
 
 
 
 
 
 
 
 
 
fa03eb1
c3af845
 
 
 
 
 
 
 
 
 
 
 
 
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
---
title: Toy Intelligence
emoji: πŸƒ
colorFrom: purple
colorTo: green
sdk: gradio
sdk_version: 5.13.2
app_file: main.py
pinned: false
license: cc-by-sa-4.0
---

# Requirements (requirements.txt)
gradio>=4.0.0
transformers>=4.36.0
torch>=2.0.0
protobuf>=4.25.1
aiohttp>=3.8.0
python-dateutil>=2.8.2
sqlite3>=3.35.0

# Project Structure

```txt
event_analysis/
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ __init__.py
β”‚   β”œβ”€β”€ analyzer.py
β”‚   β”œβ”€β”€ ontology.py
β”‚   └── relationships.py
β”œβ”€β”€ ui/
β”‚   β”œβ”€β”€ __init__.py
β”‚   β”œβ”€β”€ format.py
β”‚   └── styles.py
β”œβ”€β”€ templates/
β”‚   └── results.html
β”œβ”€β”€ main.py
└── requirements.txt
```

# Installation and Running
```bash
# Create and activate virtual environment
python -m venv .venv
source .venv/bin/activate  # or venv\Scripts\activate on Windows

# Install requirements
pip install -r requirements.txt

# Run the application
python main.py
```