Spaces:
Running
on
L4
Running
on
L4
Update app.py
Browse files
app.py
CHANGED
@@ -152,16 +152,16 @@ def init_model():
|
|
152 |
model_manager = ModelSingleton()
|
153 |
txt_model = model_manager.get_model(False, False)
|
154 |
logger.info(f"txt_model init final")
|
155 |
-
|
156 |
-
|
157 |
return 0
|
158 |
except Exception as e:
|
159 |
logger.exception(e)
|
160 |
return -1
|
161 |
|
162 |
|
163 |
-
model_init = init_model()
|
164 |
-
logger.info(f"model_init: {model_init}")
|
165 |
|
166 |
|
167 |
if __name__ == "__main__":
|
|
|
152 |
model_manager = ModelSingleton()
|
153 |
txt_model = model_manager.get_model(False, False)
|
154 |
logger.info(f"txt_model init final")
|
155 |
+
ocr_model = model_manager.get_model(True, False)
|
156 |
+
logger.info(f"ocr_model init final")
|
157 |
return 0
|
158 |
except Exception as e:
|
159 |
logger.exception(e)
|
160 |
return -1
|
161 |
|
162 |
|
163 |
+
# model_init = init_model()
|
164 |
+
# logger.info(f"model_init: {model_init}")
|
165 |
|
166 |
|
167 |
if __name__ == "__main__":
|