ICTuniverse commited on
Commit
16d74e2
·
verified ·
1 Parent(s): 54c41d8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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 = os.path.dirname(os.path.abspath(__file__))
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