Update app.py
Browse files
app.py
CHANGED
|
@@ -9,7 +9,7 @@ import matplotlib.pyplot as plt
|
|
| 9 |
import numpy as np
|
| 10 |
from matplotlib.backends.backend_agg import FigureCanvasAgg as FigureCanvas
|
| 11 |
|
| 12 |
-
@st.
|
| 13 |
def load_model():
|
| 14 |
path = 'lightning_logs/version_0/checkpoints/frn.onnx'
|
| 15 |
onnx_model = onnx.load(path)
|
|
|
|
| 9 |
import numpy as np
|
| 10 |
from matplotlib.backends.backend_agg import FigureCanvasAgg as FigureCanvas
|
| 11 |
|
| 12 |
+
@st.cache
|
| 13 |
def load_model():
|
| 14 |
path = 'lightning_logs/version_0/checkpoints/frn.onnx'
|
| 15 |
onnx_model = onnx.load(path)
|