friendshipkim commited on
Commit
f8947db
1 Parent(s): 9c00199
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -15,7 +15,7 @@ ORG_ID = "cornell-authorship"
15
  def preprocess_text(s):
16
  return list(filter(lambda x: x!= '', (''.join(c if c.isalnum() or c == ' ' else ' ' for c in s)).split(' ')))
17
 
18
- @st.cache_data
19
  def get_pairwise_distances(model):
20
  dataset = load_dataset(f"{ORG_ID}/{model}_distance")["train"]
21
  df = pd.DataFrame(dataset).set_index('index')
 
15
  def preprocess_text(s):
16
  return list(filter(lambda x: x!= '', (''.join(c if c.isalnum() or c == ' ' else ' ' for c in s)).split(' ')))
17
 
18
+ @st.cache
19
  def get_pairwise_distances(model):
20
  dataset = load_dataset(f"{ORG_ID}/{model}_distance")["train"]
21
  df = pd.DataFrame(dataset).set_index('index')