cahya commited on
Commit
f8dca23
1 Parent(s): 7d0ffd9

disable cache warning

Browse files
Files changed (1) hide show
  1. app/app.py +1 -1
app/app.py CHANGED
@@ -22,7 +22,7 @@ def get_generator():
22
  #@st.cache(suppress_st_warning=True)
23
  def process(text: str, max_length: int = 100, do_sample: bool = True, top_k: int = 50, top_p: float = 0.95,
24
  temperature: float = 1.0, max_time: float = None, seed=42):
25
- st.write("Cache miss: process")
26
  set_seed(seed)
27
  result = text_generator(text, max_length=max_length, do_sample=do_sample,
28
  top_k=top_k, top_p=top_p, temperature=temperature, max_time=max_time)
22
  #@st.cache(suppress_st_warning=True)
23
  def process(text: str, max_length: int = 100, do_sample: bool = True, top_k: int = 50, top_p: float = 0.95,
24
  temperature: float = 1.0, max_time: float = None, seed=42):
25
+ # st.write("Cache miss: process")
26
  set_seed(seed)
27
  result = text_generator(text, max_length=max_length, do_sample=do_sample,
28
  top_k=top_k, top_p=top_p, temperature=temperature, max_time=max_time)