Update app.py
Browse files
app.py
CHANGED
|
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import streamlit as st
|
| 2 |
+
|
| 3 |
+
st.set_page_config(page_title="Stack Overflow Tag Predictor", layout="centered")
|
| 4 |
+
|
| 5 |
+
st.title("π Stack Overflow Tag Predictor")
|
| 6 |
+
|
| 7 |
+
with st.expander("π About This App"):
|
| 8 |
+
st.markdown("""
|
| 9 |
+
Welcome to **TagGPT** β your smart assistant for predicting relevant Stack Overflow tags!
|
| 10 |
+
This app helps you get the best tags for your programming questions using a trained machine learning model.
|
| 11 |
+
|
| 12 |
+
---
|
| 13 |
+
|
| 14 |
+
### π‘ How It Works:
|
| 15 |
+
- π Enter a **question title** and a **detailed description** (code, error, or explanation).
|
| 16 |
+
- π§Ή The app **cleans** and processes your text.
|
| 17 |
+
- π§ It uses a pre-trained ML model to **predict the most relevant tags**.
|
| 18 |
+
- π― Adjust the **confidence threshold** to control how strict the tag suggestions are.
|
| 19 |
+
|
| 20 |
+
---
|
| 21 |
+
|
| 22 |
+
### π§ͺ What's Under the Hood:
|
| 23 |
+
- β
TF-IDF for text representation
|
| 24 |
+
- β
Multilabel classification using `OneVsRest` with a powerful classifier
|
| 25 |
+
- β
Trained on real Stack Overflow questions
|
| 26 |
+
|
| 27 |
+
---
|
| 28 |
+
|
| 29 |
+
### π Try it out!
|
| 30 |
+
Just fill in the fields below and hit **π Predict Tags** to see the magic β¨
|
| 31 |
+
""")
|
| 32 |
+
|
| 33 |
+
|
| 34 |
+
st.markdown(
|
| 35 |
+
"""
|
| 36 |
+
<div style="margin-top: 40px; text-align: center;">
|
| 37 |
+
<h4 style="color: #6A11CB;">π©βπ» About the Creator</h4>
|
| 38 |
+
<p style="color: #555; font-size: 16px;">
|
| 39 |
+
<strong>Harika Padyala</strong><br>
|
| 40 |
+
Passionate AI Developer & Data Enthusiast<br>
|
| 41 |
+
Building smart, accessible AI apps for everyone! π
|
| 42 |
+
</p>
|
| 43 |
+
<div style="margin-top: 15px;">
|
| 44 |
+
<a href="https://github.com/Harika22-08?tab=repositories" target="_blank">
|
| 45 |
+
<img src="https://img.shields.io/badge/GitHub-000000?style=for-the-badge&logo=github&logoColor=white">
|
| 46 |
+
</a>
|
| 47 |
+
<a href="https://www.linkedin.com/in/harika-padyala-67a882305/" target="_blank">
|
| 48 |
+
<img src="https://img.shields.io/badge/LinkedIn-0A66C2?style=for-the-badge&logo=linkedin&logoColor=white">
|
| 49 |
+
</a>
|
| 50 |
+
</div>
|
| 51 |
+
</div>
|
| 52 |
+
""",
|
| 53 |
+
unsafe_allow_html=True,
|
| 54 |
+
)
|