ceyda commited on
Commit
221c345
β€’
1 Parent(s): 61b709e

Update common_voice.py

Browse files
Files changed (1) hide show
  1. common_voice.py +1 -1
common_voice.py CHANGED
@@ -28,7 +28,7 @@ def cache_graph(dat,y,x,color=None):
28
  #I feel like this doesn't work correctly
29
  return px.bar(dat,y=y,x=x,color=color)
30
 
31
- @st.cache(suppress_st_warning=True)
32
  def cache_dataset(language,split=None):
33
  dat=load_dataset("common_voice",language,split=split)
34
  if split:
 
28
  #I feel like this doesn't work correctly
29
  return px.bar(dat,y=y,x=x,color=color)
30
 
31
+ @st.experimental_singleton(suppress_st_warning=True)
32
  def cache_dataset(language,split=None):
33
  dat=load_dataset("common_voice",language,split=split)
34
  if split: