Spaces:
Running
Running
GitHub Actions commited on
Commit ·
19fafb9
1
Parent(s): 869fd94
Sync from GitHub Actions
Browse files
app.py
CHANGED
|
@@ -22,6 +22,31 @@ pipeline = load_pipeline()
|
|
| 22 |
|
| 23 |
st.title("🤖 CodeInsight Assistant")
|
| 24 |
st.caption("Your fine-tuned CodeLlama-7b model, ready to help with Python.")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 25 |
|
| 26 |
if pipeline:
|
| 27 |
if "messages" not in st.session_state:
|
|
|
|
| 22 |
|
| 23 |
st.title("🤖 CodeInsight Assistant")
|
| 24 |
st.caption("Your fine-tuned CodeLlama-7b model, ready to help with Python.")
|
| 25 |
+
st.divider()
|
| 26 |
+
|
| 27 |
+
st.markdown(
|
| 28 |
+
"Welcome! This assistant is powered by a **fine-tuned CodeLlama-7b model** "
|
| 29 |
+
"to help you with Python programming tasks. Ask it to generate code, "
|
| 30 |
+
"explain concepts, or refactor snippets."
|
| 31 |
+
)
|
| 32 |
+
col1, col2 = st.columns(2)
|
| 33 |
+
|
| 34 |
+
with col1:
|
| 35 |
+
st.subheader("🚀 What it can do")
|
| 36 |
+
st.markdown("""
|
| 37 |
+
* **Generate Code:** "Write a function to merge two dictionaries."
|
| 38 |
+
* **Explain Concepts:** "What is a Python decorator and how do I use one?"
|
| 39 |
+
* **Refactor/Debug:** "Can you make this 'for' loop more efficient?"
|
| 40 |
+
""")
|
| 41 |
+
|
| 42 |
+
with col2:
|
| 43 |
+
st.subheader("⚠️ Important Limitations")
|
| 44 |
+
st.warning("""
|
| 45 |
+
* The model may occasionally produce incorrect or inefficient code.
|
| 46 |
+
* Always review and test generated code.
|
| 47 |
+
* Knowledge is limited to the model's training data.
|
| 48 |
+
""")
|
| 49 |
+
st.divider()
|
| 50 |
|
| 51 |
if pipeline:
|
| 52 |
if "messages" not in st.session_state:
|