Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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)
|