Spaces:
Running
Running
changed /"
Browse files
app.py
CHANGED
@@ -71,7 +71,7 @@ def make_prediction(image_path):
|
|
71 |
# temp = pathlib.PosixPath # Save the original state
|
72 |
# pathlib.PosixPath = pathlib.WindowsPath # Change to WindowsPath temporarily
|
73 |
|
74 |
-
model_path = Path(r'model
|
75 |
|
76 |
learner = load_learner(model_path)
|
77 |
|
@@ -129,7 +129,6 @@ def run_inference():
|
|
129 |
# Acquire the lock before starting the inference process
|
130 |
with inference_lock:
|
131 |
try:
|
132 |
-
|
133 |
model_path = r"model" # path to Layoutlmv3 model
|
134 |
images_path = r"static/uploads" # images folder
|
135 |
# Your inference process code here
|
|
|
71 |
# temp = pathlib.PosixPath # Save the original state
|
72 |
# pathlib.PosixPath = pathlib.WindowsPath # Change to WindowsPath temporarily
|
73 |
|
74 |
+
model_path = Path(r'model/export')
|
75 |
|
76 |
learner = load_learner(model_path)
|
77 |
|
|
|
129 |
# Acquire the lock before starting the inference process
|
130 |
with inference_lock:
|
131 |
try:
|
|
|
132 |
model_path = r"model" # path to Layoutlmv3 model
|
133 |
images_path = r"static/uploads" # images folder
|
134 |
# Your inference process code here
|