Spaces:
Build error
Build error
Fix model paths
Browse files
app.py
CHANGED
@@ -21,9 +21,9 @@ ITER_FACTOR = 5
|
|
21 |
|
22 |
LANGUAGE = st.sidebar.radio("Language", ["english", "dutch"],0)
|
23 |
if LANGUAGE == "english":
|
24 |
-
MODEL_PATH = "
|
25 |
elif LANGUAGE == "dutch":
|
26 |
-
MODEL_PATH = "
|
27 |
else:
|
28 |
raise NotImplementedError(f"Unsupported language ({LANGUAGE}) expected 'english' or 'dutch'.")
|
29 |
|
|
|
21 |
|
22 |
LANGUAGE = st.sidebar.radio("Language", ["english", "dutch"],0)
|
23 |
if LANGUAGE == "english":
|
24 |
+
MODEL_PATH = "bert-large-cased-whole-word-masking-finetuned-squad"
|
25 |
elif LANGUAGE == "dutch":
|
26 |
+
MODEL_PATH = "bert-base-dutch-cased"
|
27 |
else:
|
28 |
raise NotImplementedError(f"Unsupported language ({LANGUAGE}) expected 'english' or 'dutch'.")
|
29 |
|