KR-16/Code-Assistant-CodeLlama2
0
1---2title: Code Assistant CodeLlama23emoji: ๐4colorFrom: gray5colorTo: indigo6sdk: gradio7sdk_version: 5.16.08app_file: app.py9pinned: false10license: apache-2.011---12# Code Assistant13 14A Gradio web application that helps with coding questions using various Hugging Face models.15 16## Models Available17- GPT-2 (124M) - General purpose model18- OPT (125M) - Good for text generation19- Pythia (160M) - Good for code20- BLOOM (560M) - Multilingual model21- Phi-1 (1.3B) - Good for coding tasks22 23## Setup24The app requires a HUGGINGFACE_API_TOKEN environment variable to be set.25 26## Features27 28- **Interactive Interface**: Users can input prompts and receive code-related responses in real-time.29- **Model Integration**: Utilizes the CodeLlama2 model for generating code suggestions and explanations.30- **History Tracking**: Keeps track of user prompts to provide contextually relevant responses.31 32## Requirements33 34To run this project, you need to have the following Python packages installed:35 36- `langchain`37- `gradio`38 39You can install the required packages using pip:40 41## Usage42 431. Clone the repository:44 45 ```bash46 git clone https://github.com/KR-16/Code-Assistant-CodeLlama2.git47 cd Code-Assistant-CodeLlama248 ```49 502. Start the application:51 52 ```bash53 python app.py54 ```55 563. Open your web browser and navigate to `http://localhost:7860` to access the interface.57 58## License59 60This project is licensed under the Apache License 2.0. See the [LICENSE](LICENSE) file for more details.61 62## Contributing63 64Contributions are welcome! Please feel free to submit a pull request or open an issue for any suggestions or improvements.65 66## Acknowledgments67 68- Thanks to the developers of CodeLlama2 for providing the model that powers this application.69 