Spaces:
Sleeping
Sleeping
A newer version of the Gradio SDK is available: 6.9.0
metadata
title: Coding Expert AI Chatbot
emoji: 🤖
colorFrom: blue
colorTo: green
sdk: gradio
sdk_version: 4.44.0
app_file: app.py
pinned: false
Coding Expert AI Chatbot
This is a chatbot application built with Gradio and powered by Microsoft's Phi-2 model, which is specialized in coding and general conversational tasks.
Features
- AI powered by Phi-2 (2.7B parameters), excellent for coding assistance
- Streaming responses for faster interaction (text appears as it's generated)
- Gradio interface for easy interaction
- Maintains conversation history
- Supports Hugging Face token for accessing models
Setup
To use a Hugging Face token (recommended):
- Create a Hugging Face account at https://huggingface.co
- Generate a token at https://huggingface.co/settings/tokens
- In your Space settings, add the token as an environment variable named
HF_TOKEN
Usage
- Run the app:
python app.py - Open your browser to the provided URL
- Start chatting with the AI! It can help with coding questions and general conversations.
Model
The app uses microsoft/phi-2, a 2.7B parameter model fine-tuned for coding and instruction-following tasks. It's larger than previous models and provides better responses, especially for technical questions.
Note: This model may take longer to load and respond on free-tier hosting, but responses stream in real-time.
Built with anycoder
Built with anycoder - AI-powered code generation.