Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -6,9 +6,9 @@ import os
|
|
| 6 |
app = Flask(__name__)
|
| 7 |
|
| 8 |
# Initialize vncorenlp (point to the JAR file in your folder)
|
| 9 |
-
current_dir =
|
| 10 |
vncorenlp_path = os.path.join(current_dir, "vncorenlp")
|
| 11 |
-
word_segmenter = py_vncorenlp.VnCoreNLP(vncorenlp_path, annotators="wseg")
|
| 12 |
|
| 13 |
# Load your cross-encoder model (replace with your model name or path)
|
| 14 |
model_name = "truong1301/reranker_pho_BLAI" # Example model, replace with yours
|
|
|
|
| 6 |
app = Flask(__name__)
|
| 7 |
|
| 8 |
# Initialize vncorenlp (point to the JAR file in your folder)
|
| 9 |
+
current_dir = 'reranking'
|
| 10 |
vncorenlp_path = os.path.join(current_dir, "vncorenlp")
|
| 11 |
+
word_segmenter = py_vncorenlp.VnCoreNLP(save_dir=vncorenlp_path, annotators="wseg")
|
| 12 |
|
| 13 |
# Load your cross-encoder model (replace with your model name or path)
|
| 14 |
model_name = "truong1301/reranker_pho_BLAI" # Example model, replace with yours
|