vsj0702 commited on
Commit
130ed49
Β·
verified Β·
1 Parent(s): 0029087
Files changed (1) hide show
  1. README.md +47 -26
README.md CHANGED
@@ -11,50 +11,71 @@ pinned: true
11
 
12
  # πŸ’» Pro Code Playground
13
 
14
- **Pro Code Playground** is an interactive Python code editor and runner, with built-in AI code assistant, powered by [Streamlit](https://streamlit.io/).
15
- It features a live code editor, stdin simulation, and theme support for light and dark modes.
 
16
 
17
  ---
18
 
19
- ### πŸš€ Features
20
 
21
- - 🧠 AI Assistant (LLaMA-3 via Groq)
22
- - πŸ“ Live Python code editor (via `streamlit_ace`)
23
- - πŸ§ͺ Simulate input with `stdin`
24
- - πŸŒ“ Theme toggle (light/dark)
25
- - πŸ’¬ Scrollable, memory-aware chatbot
26
- - 🎨 Custom dynamic styling with CSS injection
27
- - πŸ”Š (Optional) Text-to-speech via Edge TTS
 
 
28
 
29
  ---
30
 
31
- ### πŸ› οΈ Tech Stack
32
 
33
- - `Streamlit` + `streamlit_ace`
34
- - `LangChain`, `Groq`, `LLaMA 3`
35
- - `Edge TTS` (optional)
36
- - Fully modular structure (`app.py`, `layout.py`, `style.py`, `chatbot.py`)
 
37
 
38
  ---
39
 
40
- ### πŸ”§ Configuration
41
 
42
- - Toggle light/dark mode with emoji switch β˜€οΈ / πŸŒ™
43
- - Customize themes easily via `layout.py`
44
- - Built to run inside Hugging Face Spaces or locally
 
 
 
 
 
45
 
46
  ---
47
 
48
- ### 🧠 Powered by
49
 
50
- - **LLM**: LLaMA 3–70B (via [Groq API](https://console.groq.com/))
51
- - **LangChain**: Prompt templates & memory
52
- - **Hugging Face Spaces**: Host and deploy
53
 
54
  ---
55
 
56
- ### πŸ§ͺ Try It Live
 
 
 
 
 
57
 
58
- This app is live on [πŸ€— Hugging Face Spaces](https://huggingface.co/spaces/vsj0702/Code_editor) β€” just run it in your browser, no setup needed.
 
 
 
 
 
 
 
59
 
60
- ---
 
 
11
 
12
  # πŸ’» Pro Code Playground
13
 
14
+ **Pro Code Playground** is an open-source, multi-language code editor with real-time execution and built-in AI assistance β€” all in your browser.
15
+
16
+ Built using [Streamlit](https://streamlit.io), it supports multiple languages, code uploads, theme switching, and AI code help via **Groq's LLaMA 3.3**.
17
 
18
  ---
19
 
20
+ ## πŸš€ Features
21
 
22
+ - 🧠 **AI Code Assistant** powered by Groq’s LLaMA-3 70B (via LangChain)
23
+ - ✍️ **Multi-language support**: Python, Java, C++, C, JavaScript, C#
24
+ - πŸ“€ **File uploader** with auto language detection
25
+ - πŸ“₯ **Stdin simulation** for interactive inputs
26
+ - πŸŒ“ **Dark/Light theme toggle**
27
+ - πŸ’¬ **Scrollable chatbot** with memory and summarization
28
+ - πŸ”Š **Narration**: Converts answers to audio with Edge TTS
29
+ - 🧾 **Download your code** in one click
30
+ - πŸ“ **Execution metrics**: Time & memory used
31
 
32
  ---
33
 
34
+ ## 🧠 Tech Stack
35
 
36
+ - **Frontend**: Streamlit + streamlit-ace
37
+ - **AI Backend**: LangChain + Groq (LLaMA 3.3–70B)
38
+ - **Execution**: Native subprocess + OneCompiler API
39
+ - **Audio**: Edge-TTS
40
+ - **Hosting**: Hugging Face Spaces
41
 
42
  ---
43
 
44
+ ## πŸ› οΈ Modular Codebase
45
 
46
+ ```text
47
+ β”œβ”€β”€ app.py # Main entry point
48
+ β”œβ”€β”€ code_editor.py # Code editor & execution logic
49
+ β”œβ”€β”€ chatbot.py # LLM assistant logic
50
+ β”œβ”€β”€ layout.py # Theme and CSS customization
51
+ β”œβ”€β”€ utils.py # Language-specific runners
52
+ β”œβ”€β”€ requirements.txt # Python dependencies
53
+ ```
54
 
55
  ---
56
 
57
+ ## πŸ§ͺ Try It Live
58
 
59
+ πŸ‘‰ [Click here to run the app](https://huggingface.co/spaces/vsj0702/Code_editor)
60
+ No login or setup required β€” just type, run, and chat!
 
61
 
62
  ---
63
 
64
+ ## 🀝 Contribute or Fork
65
+
66
+ This project is open to contributions.
67
+ You can clone this Space, fork it, or add new features like test case evaluation, Gist export, or multi-file projects.
68
+
69
+ ---
70
 
71
+ ## 🧠 Powered by
72
+
73
+ - **LLaMA 3–70B (Groq)**
74
+ - **LangChain prompt templates & memory**
75
+ - **Edge TTS** for text-to-speech
76
+ - **Hugging Face Spaces** for deployment
77
+
78
+ ---
79
 
80
+ Made with ❀️ by **Vaibhav (vsj0702)**
81
+ πŸ“§ Contact: [vsj0702@gmail.com](mailto:vsj0702@gmail.com)