SandeepU commited on
Commit
bf2c260
·
verified ·
1 Parent(s): 748ac45

Upload 3 files

Browse files
Files changed (2) hide show
  1. README.md +3 -3
  2. 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-small)
13
 
14
- This app uses `Salesforce/codet5-small` to generate natural language explanations of Python code snippets.
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 powered by a summarization-trained model.
 
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-small)")
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)