Spaces:
Runtime error
Runtime error
cache fix
Browse files
corpus.py
CHANGED
@@ -74,9 +74,10 @@ def body():
|
|
74 |
|
75 |
with st.spinner("Explaining sample (this might take a while)..."):
|
76 |
|
|
|
|
|
77 |
@st.cache()
|
78 |
def compute_table(samples):
|
79 |
-
data = bench.load_dataset("hatexplain")
|
80 |
sample_evaluations = bench.evaluate_samples(data, samples)
|
81 |
table = bench.show_samples_evaluation_table(sample_evaluations)
|
82 |
return table
|
|
|
74 |
|
75 |
with st.spinner("Explaining sample (this might take a while)..."):
|
76 |
|
77 |
+
data = bench.load_dataset("hatexplain")
|
78 |
+
|
79 |
@st.cache()
|
80 |
def compute_table(samples):
|
|
|
81 |
sample_evaluations = bench.evaluate_samples(data, samples)
|
82 |
table = bench.show_samples_evaluation_table(sample_evaluations)
|
83 |
return table
|