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