Harika22 commited on
Commit
693f905
Β·
verified Β·
1 Parent(s): ad0c377

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +54 -0
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
+ )