Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -152,6 +152,12 @@ with tab1:
|
|
| 152 |
st.warning("Please upload a CSV file to get started.")
|
| 153 |
else:
|
| 154 |
df = pd.read_csv(uploaded_file)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 155 |
# Load the fine-tuned news classifier
|
| 156 |
classifier = pipeline("text-classification", model="Imasha17/News_classification.4")
|
| 157 |
|
|
@@ -213,9 +219,7 @@ with tab1:
|
|
| 213 |
# Keep only necessary columns
|
| 214 |
df = df[['content','Class']]
|
| 215 |
|
| 216 |
-
|
| 217 |
-
st.subheader("Preview Uploaded Data")
|
| 218 |
-
st.dataframe(df.head(5))
|
| 219 |
|
| 220 |
#show Classification Results
|
| 221 |
st.subheader("Classification Results")
|
|
|
|
| 152 |
st.warning("Please upload a CSV file to get started.")
|
| 153 |
else:
|
| 154 |
df = pd.read_csv(uploaded_file)
|
| 155 |
+
|
| 156 |
+
#Preview Uploaded Data
|
| 157 |
+
st.subheader("Preview Uploaded Data")
|
| 158 |
+
st.dataframe(df.head(5))
|
| 159 |
+
|
| 160 |
+
|
| 161 |
# Load the fine-tuned news classifier
|
| 162 |
classifier = pipeline("text-classification", model="Imasha17/News_classification.4")
|
| 163 |
|
|
|
|
| 219 |
# Keep only necessary columns
|
| 220 |
df = df[['content','Class']]
|
| 221 |
|
| 222 |
+
|
|
|
|
|
|
|
| 223 |
|
| 224 |
#show Classification Results
|
| 225 |
st.subheader("Classification Results")
|