Anandhju-jayan commited on
Commit
1d4ffcc
·
1 Parent(s): a9c1c32

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -6,7 +6,7 @@ from PIL import Image
6
  from model import get_caption_model, generate_caption
7
  import gradio as gr
8
 
9
-
10
  def get_model():
11
  return get_caption_model()
12
 
 
6
  from model import get_caption_model, generate_caption
7
  import gradio as gr
8
 
9
+ @st.cache(allow_output_mutation=True)
10
  def get_model():
11
  return get_caption_model()
12