warda-10 commited on
Commit
60ebc92
·
verified ·
1 Parent(s): 9bf3058

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -5,6 +5,9 @@ import pickle
5
  import tempfile
6
  from tensorflow.keras.preprocessing.sequence import pad_sequences
7
  from PIL import Image
 
 
 
8
  import matplotlib.pyplot as plt
9
  @st.cache_resource
10
  def load_captioning_model():
 
5
  import tempfile
6
  from tensorflow.keras.preprocessing.sequence import pad_sequences
7
  from PIL import Image
8
+ import os
9
+ os.environ['MPLCONFIGDIR'] = '/tmp'
10
+
11
  import matplotlib.pyplot as plt
12
  @st.cache_resource
13
  def load_captioning_model():