SandeepU commited on
Commit
d7c3b25
·
verified ·
1 Parent(s): 24af8b1

Upload 2 files

Browse files
Files changed (2) hide show
  1. README.md +20 -17
  2. requirements.txt +3 -3
README.md CHANGED
@@ -1,20 +1,23 @@
1
- ---
2
- title: Code Explainer
3
- emoji: 🚀
4
- colorFrom: red
5
- colorTo: red
6
- sdk: docker
7
- app_port: 8501
8
- tags:
9
- - streamlit
10
- pinned: false
11
- short_description: Streamlit template space
12
- license: mit
13
- ---
14
 
15
- # Welcome to Streamlit!
16
 
17
- Edit `/src/streamlit_app.py` to customize this app to your heart's desire. :heart:
18
 
19
- If you have any questions, checkout our [documentation](https://docs.streamlit.io) and [community
20
- forums](https://discuss.streamlit.io).
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Code Explainer 🧠
 
 
 
 
 
 
 
 
 
 
 
 
2
 
3
+ This project uses the `bigcode/starcoder` model to explain Python code in plain English.
4
 
5
+ ## How to Run
6
 
7
+ ```bash
8
+ pip install -r requirements.txt
9
+ streamlit run app/main.py
10
+ ```
11
+
12
+ ## Example
13
+
14
+ Input:
15
+ ```python
16
+ def fibonacci(n):
17
+ if n <= 1:
18
+ return n
19
+ return fibonacci(n-1) + fibonacci(n-2)
20
+ ```
21
+
22
+ Output:
23
+ > This function calculates the nth Fibonacci number using recursion...
requirements.txt CHANGED
@@ -1,3 +1,3 @@
1
- altair
2
- pandas
3
- streamlit
 
1
+ transformers
2
+ torch
3
+ streamlit