File size: 1,481 Bytes
fc8faa3
882d7fc
 
 
fc8faa3
 
86922b4
fc8faa3
882d7fc
fc8faa3
 
882d7fc
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
---
title: Pro Code Playground
emoji: πŸ’»
colorFrom: indigo
colorTo: blue
sdk: streamlit
sdk_version: 1.46.1
app_file: app.py
pinned: true
---

# πŸ’» Pro Code Playground

**Pro Code Playground** is an interactive Python code editor and runner, with built-in AI code assistant, powered by [Streamlit](https://streamlit.io/).  
It features a live code editor, stdin simulation, and theme support for light and dark modes.

---

### πŸš€ Features

- 🧠 AI Assistant (LLaMA-3 via Groq)
- πŸ“ Live Python code editor (via `streamlit_ace`)
- πŸ§ͺ Simulate input with `stdin`
- πŸŒ“ Theme toggle (light/dark)
- πŸ’¬ Scrollable, memory-aware chatbot
- 🎨 Custom dynamic styling with CSS injection
- πŸ”Š (Optional) Text-to-speech via Edge TTS

---

### πŸ› οΈ Tech Stack

- `Streamlit` + `streamlit_ace`
- `LangChain`, `Groq`, `LLaMA 3`
- `Edge TTS` (optional)
- Fully modular structure (`app.py`, `layout.py`, `style.py`, `chatbot.py`)

---

### πŸ”§ Configuration

- Toggle light/dark mode with emoji switch β˜€οΈ / πŸŒ™
- Customize themes easily via `layout.py`
- Built to run inside Hugging Face Spaces or locally

---

### 🧠 Powered by

- **LLM**: LLaMA 3–70B (via [Groq API](https://console.groq.com/))
- **LangChain**: Prompt templates & memory
- **Hugging Face Spaces**: Host and deploy

---

### πŸ§ͺ Try It Live

This app is live on [πŸ€— Hugging Face Spaces](https://huggingface.co/spaces/vsj0702/Code_editor) β€” just run it in your browser, no setup needed.

---