lvwerra HF staff commited on
Commit
a6c2f56
β€’
1 Parent(s): 1f7c61a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -2,7 +2,7 @@ from datasets import load_dataset
2
  import streamlit as st
3
 
4
 
5
- @st.cache()
6
  def load_all_usernames():
7
  list_of_usernames = load_dataset("bigcode/the-stack-usernames", split="train")["usernames"]
8
  return set(list_of_usernames)
 
2
  import streamlit as st
3
 
4
 
5
+ @st.cache(allow_output_mutation=True)
6
  def load_all_usernames():
7
  list_of_usernames = load_dataset("bigcode/the-stack-usernames", split="train")["usernames"]
8
  return set(list_of_usernames)