File size: 1,306 Bytes
05668aa
1712ab6
 
 
 
05668aa
1712ab6
05668aa
 
34ee480
1712ab6
34ee480
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
---
title: KGoT Python Executor
emoji: 🐍
colorFrom: blue
colorTo: gray
sdk: docker
app_port: 7860
---

Remote Python executor for Knowledge Graph of Thoughts with comprehensive ML/data science capabilities.

## Hardware
- **CPU Basic** (Free): 2 vCPU, 16GB RAM, 50GB ephemeral disk

## Included Libraries

### Core Data
- numpy, pandas

### NLP
- nltk, spacy, transformers, textblob, gensim, fastembed

### Vision
- pillow, opencv-python-headless, torchvision, scikit-image

### Advanced Data
- polars, duckdb, sktime

### Time Series & Graph
- torch (CPU), torch_geometric, networkx
- pyg_lib, torch_scatter, torch_sparse, torch_cluster

### Audio
- pydub, soundfile, librosa

### Documents
- python-docx, csvkit, rich, svgwrite, svgpathtools, PyMuPDF

### Utilities
- pydantic, tqdm, ipython, click, tenacity, ujson, msgpack, xxhash, zstandard, httpx

### ML
- scikit-learn, joblib

### Visualization
- matplotlib, seaborn

## API Endpoints

- `GET /` - Basic service info
- `GET /health` - Health check
- `POST /run` - Code execution endpoint

### POST /run
```python
{
   "required_modules": ["list", "of", "packages"],  # Optional - auto-install
   "code": "python code to execute"
}
```

Returns:
```python
{
    "output": "execution output"
}
```

## Timeout
- Maximum execution time: 240 seconds