Spaces:
Build error
Build error
app.py
CHANGED
@@ -44,9 +44,10 @@ def get_answers_timestamp(question, final_transcript, transcript):
|
|
44 |
pipe = pipeline("question-answering", model=model, tokenizer=tokenizer)
|
45 |
for contexts in contx:
|
46 |
lst.append(pipe(question=question, context=contexts))
|
47 |
-
|
|
|
48 |
lst_scores = [dicts['score'] for dicts in lst]
|
49 |
-
|
50 |
#getting highest and second highest scores
|
51 |
idxmax = lst_scores.index(max(lst_scores))
|
52 |
lst_scores.remove(max(lst_scores))
|
|
|
44 |
pipe = pipeline("question-answering", model=model, tokenizer=tokenizer)
|
45 |
for contexts in contx:
|
46 |
lst.append(pipe(question=question, context=contexts))
|
47 |
+
|
48 |
+
print(f"contx list is : {contx}")
|
49 |
lst_scores = [dicts['score'] for dicts in lst]
|
50 |
+
print(f"lst_scores is : {lst_scores}")
|
51 |
#getting highest and second highest scores
|
52 |
idxmax = lst_scores.index(max(lst_scores))
|
53 |
lst_scores.remove(max(lst_scores))
|