Spaces:
Sleeping
Sleeping
Updated
Browse files
README.md
CHANGED
|
@@ -11,50 +11,71 @@ pinned: true
|
|
| 11 |
|
| 12 |
# π» Pro Code Playground
|
| 13 |
|
| 14 |
-
**Pro Code Playground** is an
|
| 15 |
-
|
|
|
|
| 16 |
|
| 17 |
---
|
| 18 |
|
| 19 |
-
|
| 20 |
|
| 21 |
-
- π§ AI Assistant
|
| 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 |
-
- **Hugging Face Spaces**: Host and deploy
|
| 53 |
|
| 54 |
---
|
| 55 |
|
| 56 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 57 |
|
| 58 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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)
|