loubnabnl HF staff commited on
Commit
36f03c6
1 Parent(s): c3152eb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -46,7 +46,7 @@ def generate_code(
46
  generated_text = r.json()["data"][0]
47
  generations.append(generated_text)
48
 
49
-
50
  def generate_code_threads(
51
  generations, models, gen_prompt, max_new_tokens, temperature, seed
52
  ):
 
46
  generated_text = r.json()["data"][0]
47
  generations.append(generated_text)
48
 
49
+ @st.cache(show_spinner=False)
50
  def generate_code_threads(
51
  generations, models, gen_prompt, max_new_tokens, temperature, seed
52
  ):