Spaces:
Sleeping
Sleeping
Upload 3 files
Browse files- README.md +3 -3
- streamlit_app.py +1 -1
README.md
CHANGED
@@ -9,11 +9,11 @@ app_file: streamlit_app.py
|
|
9 |
pinned: false
|
10 |
---
|
11 |
|
12 |
-
# 🧠 Code Explainer (CodeT5-
|
13 |
|
14 |
-
This app uses `Salesforce/codet5-
|
15 |
|
16 |
## How to Use
|
17 |
1. Paste Python code in the input box.
|
18 |
2. Click "Explain".
|
19 |
-
3. View the AI-generated explanation
|
|
|
9 |
pinned: false
|
10 |
---
|
11 |
|
12 |
+
# 🧠 Code Explainer (CodeT5-base Summarizer)
|
13 |
|
14 |
+
This app uses `Salesforce/codet5-base-multi-sum`, a model fine-tuned for code summarization.
|
15 |
|
16 |
## How to Use
|
17 |
1. Paste Python code in the input box.
|
18 |
2. Click "Explain".
|
19 |
+
3. View the AI-generated explanation of what the function does.
|
streamlit_app.py
CHANGED
@@ -3,7 +3,7 @@ from model.model_utils import load_model, generate_explanation
|
|
3 |
|
4 |
st.set_page_config(page_title="Code Explainer", layout="centered")
|
5 |
|
6 |
-
st.title("🧠 Code Explainer (CodeT5-
|
7 |
st.write("Paste your Python code below and get a natural language explanation:")
|
8 |
|
9 |
code_input = st.text_area("Paste Python Code", height=200)
|
|
|
3 |
|
4 |
st.set_page_config(page_title="Code Explainer", layout="centered")
|
5 |
|
6 |
+
st.title("🧠 Code Explainer (CodeT5-base Summarizer)")
|
7 |
st.write("Paste your Python code below and get a natural language explanation:")
|
8 |
|
9 |
code_input = st.text_area("Paste Python Code", height=200)
|