koushikvkr484 commited on
Commit
3955d37
·
verified ·
1 Parent(s): bfdba32

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -7
app.py CHANGED
@@ -121,11 +121,12 @@ I am writing to report a significant problem with the centralized account manage
121
  st.write("---")
122
 
123
  # Input Fields
124
- col1, col2 = st.columns(2)
125
- with col1:
126
- subject = st.text_input("Enter your **Subject**:", key="subject_input")
127
- with col2:
128
- body = st.text_area("Enter your **Body**:", key="body_input", height=100)
 
129
 
130
  # --- Prediction Logic ---
131
 
@@ -134,7 +135,7 @@ if st.button("Submit"):
134
  st.warning("Please enter a subject or body text to classify.")
135
  else:
136
  # Combine and Clean
137
- raw_text = subject + " " + body
138
  cleaned = clean_text(raw_text)
139
 
140
  st.subheader("Preprocessing Results")
@@ -159,7 +160,7 @@ if st.button("Submit"):
159
 
160
  st.success("✅ Classification Complete!")
161
 
162
- st.subheader("Prediction Results")
163
  st.metric("Predicted Type", pred_type)
164
  st.metric("Predicted Queue", pred_queue)
165
 
 
121
  st.write("---")
122
 
123
  # Input Fields
124
+ body = st.text_area("Enter your **Subject** and **Body**:", key="subject_body_input", height=200)
125
+ #col1, col2 = st.columns(2)
126
+ #with col1:
127
+ # subject = st.text_input("Enter your **Subject**:", key="subject_input")
128
+ #with col2:
129
+ # body = st.text_area("Enter your **Body**:", key="body_input", height=100)
130
 
131
  # --- Prediction Logic ---
132
 
 
135
  st.warning("Please enter a subject or body text to classify.")
136
  else:
137
  # Combine and Clean
138
+ raw_text = body # subject + " " + body
139
  cleaned = clean_text(raw_text)
140
 
141
  st.subheader("Preprocessing Results")
 
160
 
161
  st.success("✅ Classification Complete!")
162
 
163
+ #st.subheader("Prediction Results")
164
  st.metric("Predicted Type", pred_type)
165
  st.metric("Predicted Queue", pred_queue)
166