KR-16 commited on
Commit
71b371b
·
verified ·
1 Parent(s): 54e27fa

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +56 -1
README.md CHANGED
@@ -9,5 +9,60 @@ app_file: app.py
9
  pinned: false
10
  license: apache-2.0
11
  ---
 
12
 
13
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9
  pinned: false
10
  license: apache-2.0
11
  ---
12
+ # Code Assistant
13
 
14
+ A Gradio web application that helps with coding questions using various Hugging Face models.
15
+
16
+ ## Models Available
17
+ - GPT-2 (124M) - General purpose model
18
+ - OPT (125M) - Good for text generation
19
+ - Pythia (160M) - Good for code
20
+ - BLOOM (560M) - Multilingual model
21
+ - Phi-1 (1.3B) - Good for coding tasks
22
+
23
+ ## Setup
24
+ The app requires a HUGGINGFACE_API_TOKEN environment variable to be set.
25
+
26
+ ## Features
27
+
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
+ ## Requirements
33
+
34
+ To run this project, you need to have the following Python packages installed:
35
+
36
+ - `langchain`
37
+ - `gradio`
38
+
39
+ You can install the required packages using pip:
40
+
41
+ ## Usage
42
+
43
+ 1. Clone the repository:
44
+
45
+ ```bash
46
+ git clone https://github.com/KR-16/Code-Assistant-CodeLlama2.git
47
+ cd Code-Assistant-CodeLlama2
48
+ ```
49
+
50
+ 2. Start the application:
51
+
52
+ ```bash
53
+ python app.py
54
+ ```
55
+
56
+ 3. Open your web browser and navigate to `http://localhost:7860` to access the interface.
57
+
58
+ ## License
59
+
60
+ This project is licensed under the Apache License 2.0. See the [LICENSE](LICENSE) file for more details.
61
+
62
+ ## Contributing
63
+
64
+ Contributions are welcome! Please feel free to submit a pull request or open an issue for any suggestions or improvements.
65
+
66
+ ## Acknowledgments
67
+
68
+ - Thanks to the developers of CodeLlama2 for providing the model that powers this application.