Spaces:
Runtime error
Runtime error
cache fix
Browse files
corpus.py
CHANGED
|
@@ -3,6 +3,7 @@ import streamlit as st
|
|
| 3 |
from transformers import AutoModelForSequenceClassification, AutoTokenizer, AutoConfig
|
| 4 |
from ferret import Benchmark
|
| 5 |
from torch.nn.functional import softmax
|
|
|
|
| 6 |
|
| 7 |
DEFAULT_MODEL = "cardiffnlp/twitter-xlm-roberta-base-sentiment"
|
| 8 |
|
|
@@ -81,6 +82,7 @@ def body():
|
|
| 81 |
return table
|
| 82 |
|
| 83 |
table = compute_table(samples)
|
|
|
|
| 84 |
|
| 85 |
st.markdown("### Averaged metrics")
|
| 86 |
st.dataframe(table)
|
|
|
|
| 3 |
from transformers import AutoModelForSequenceClassification, AutoTokenizer, AutoConfig
|
| 4 |
from ferret import Benchmark
|
| 5 |
from torch.nn.functional import softmax
|
| 6 |
+
from copy import deepcopy
|
| 7 |
|
| 8 |
DEFAULT_MODEL = "cardiffnlp/twitter-xlm-roberta-base-sentiment"
|
| 9 |
|
|
|
|
| 82 |
return table
|
| 83 |
|
| 84 |
table = compute_table(samples)
|
| 85 |
+
table = deepcopy(table)
|
| 86 |
|
| 87 |
st.markdown("### Averaged metrics")
|
| 88 |
st.dataframe(table)
|