Rizwankaka/deepseek-r1-chat
Sobre
Chatbot criado com Gradio que usa o modelo de código aberto DeepSeek-R1 executado localmente.
IA e aprendizado de máquinaO que você pode fazer
- 🐍 Python Expert
- 🐞 Debugging Assistant
- 📝 Code Documentation
- 💡 Solution Design
Crescimento medido de estrelas
- em 24 h
- 0
- em 7 dias
- 0
- em 15 dias
- 0
- em 1 mês
- Coletando histórico
Variações líquidas em períodos sobrepostos, não totais diários. Medições ausentes ficam em branco. Estrelas indicam interesse, não qualidade.
README.md
Original🧠 DeepSeek Code Companion

🚀 Overview
DeepSeek Code Companion is an AI-powered coding assistant that runs completely locally on your machine. Built with Gradio and powered by the DeepSeek-r1 language model through Ollama, it provides intelligent coding assistance, debugging help, and programming guidance.
✨ Features
- 🐍 Python Expert
- 🐞 Debugging Assistant
- 📝 Code Documentation
- 💡 Solution Design
- 🏃♂️ Runs 100% locally
- 🔒 Privacy-focused
🛠️ Prerequisites
Before running the app, make sure you have:
- Python 3.8+ installed on your system
- Ollama installed from ollama.com
- The DeepSeek model pulled (instructions below)
📦 Installation
- Clone the repository bash git clone https://github.com/Rizwankaka/deepseek-r1-chat.git
cd deepseek-r1-chat
- Install dependencies
pip install -r requirements.txt
- Download the DeepSeek model using Ollama
ollama pull deepseek-r1:1.5b
🚀 Running the App
- Start Ollama (if not already running)
ollama serve
- Launch the app
python app.py
- Open your browser and navigate to:
http://127.0.0.1:7860
💻 Usage
- Select your preferred model version from the dropdown (1.5b or 3b)
- Type your coding question in the chat input
- Get instant, locally-processed responses for your coding queries!
🛠️ Built With
- Gradio - Web interface
- LangChain - LLM framework
- Ollama - Local model serving
- DeepSeek-r1 - Language model
📝 Requirements
gradio
langchain
langchain-core
langchain-ollama
🤝 Contributing
Contributions, issues, and feature requests are welcome! Feel free to check the issues page.
📜 License
This project is licensed under the MIT License - see the LICENSE file for details.
🙏 Acknowledgments
- DeepSeek team for the amazing model
- Ollama team for making local LLMs accessible
- LangChain team for the fantastic framework
⭐ If you found this project helpful, please consider giving it a star!
📸 Screenshot

🔥 Key Features Explained
Python Expertise
The DeepSeek model is specifically fine-tuned for Python programming, offering:
- Code completion
- Bug fixing
- Best practices suggestions
- Performance optimization tips
Debugging Assistant
- Strategic print statement suggestions
- Error analysis
- Step-by-step problem solving
- Runtime error debugging
Code Documentation
- Automatic docstring generation
- Code explanation
- Comment suggestions
- Documentation best practices
Solution Design
- Architecture recommendations
- Design patterns
- Code organization
- Scalability considerations
🚫 Common Issues & Solutions
Ollama Connection Error
Solution: Ensure Ollama is running with 'ollama serve'Model Not Found
Solution: Run 'ollama pull deepseek-r1:1.5b'Port Already in Use
Solution: Change the port in app.launch(server_port=XXXX)
💡 Tips for Best Results
- Be specific in your questions
- Provide context when asking about code
- Use the 1.5b model for faster responses
- Use the 3b model for more complex tasks
🔄 Updates & Maintenance
Stay updated with the latest features:
git pull origin main
pip install -r requirements.txt
Made with ❤️ by Rizwan Rizwan, for the community
Explore projetos relacionados
Carregando…