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