Update app.py
Browse files
app.py
CHANGED
@@ -46,8 +46,8 @@ elif page == "Model Evaluation":
|
|
46 |
# Load dataset
|
47 |
with st.spinner("Loading dataset..."):
|
48 |
dataset = load_dataset(dataset_name, task, split=split)
|
49 |
-
|
50 |
-
|
51 |
|
52 |
# Load model
|
53 |
model_name = f"cardiffnlp/twitter-roberta-base-{task}"
|
@@ -91,3 +91,4 @@ elif page == "Model Evaluation":
|
|
91 |
|
92 |
st.pyplot(fig)
|
93 |
st.success(f"Precision-Recall AUC: {pr_auc:.2f}")
|
|
|
|
46 |
# Load dataset
|
47 |
with st.spinner("Loading dataset..."):
|
48 |
dataset = load_dataset(dataset_name, task, split=split)
|
49 |
+
dataset = dataset.select(range(1000)) # Limit to first 1000 samples
|
50 |
+
st.write(f"Loaded {len(dataset)} samples from {dataset_name} ({task}/{split}).")
|
51 |
|
52 |
# Load model
|
53 |
model_name = f"cardiffnlp/twitter-roberta-base-{task}"
|
|
|
91 |
|
92 |
st.pyplot(fig)
|
93 |
st.success(f"Precision-Recall AUC: {pr_auc:.2f}")
|
94 |
+
|