Sirinoot commited on
Commit
5b11bcc
·
verified ·
1 Parent(s): ef17848

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -166,6 +166,8 @@ def predict_test(model, tokenizer, embedding_model, df, question, index): # sen
166
  # Find the start and end indices of mostSimSegment within mostSimContext
167
  start_index = mostSimContext.find(Answer)
168
  end_index = start_index + len(Answer)
 
 
169
  _time = time.time() - t
170
  output = {
171
  "user_question": question,
 
166
  # Find the start and end indices of mostSimSegment within mostSimContext
167
  start_index = mostSimContext.find(Answer)
168
  end_index = start_index + len(Answer)
169
+ print(f"startIndex =>{ start_index} endIndex =>{ end_index}")
170
+ print(f"mostSimContext{len(mostSimContext)}=>{mostSimContext}\nsegments{len(segments)}=>{segments}\nmostSimSegment{len(mostSimSegment)}=>{mostSimSegment}")
171
  _time = time.time() - t
172
  output = {
173
  "user_question": question,