Spaces:
Running
Running
breezedeus
commited on
Commit
•
72f89af
1
Parent(s):
d177027
Update app.py
Browse files
app.py
CHANGED
@@ -64,7 +64,7 @@ def plot_for_debugging(rotated_img, one_out, box_score_thresh, crop_ncols, prefi
|
|
64 |
print('boxes results are save to file %s' % result_fp)
|
65 |
|
66 |
|
67 |
-
@st.
|
68 |
def get_ocr_model(det_model_name, rec_model_name, det_more_configs):
|
69 |
det_model_name, det_model_backend = det_model_name
|
70 |
rec_model_name, rec_model_backend = rec_model_name
|
|
|
64 |
print('boxes results are save to file %s' % result_fp)
|
65 |
|
66 |
|
67 |
+
@st.cache_resource
|
68 |
def get_ocr_model(det_model_name, rec_model_name, det_more_configs):
|
69 |
det_model_name, det_model_backend = det_model_name
|
70 |
rec_model_name, rec_model_backend = rec_model_name
|