Spaces:
Runtime error
Runtime error
Francesco-A
commited on
Commit
•
88bf2e7
1
Parent(s):
698a434
debug
Browse files
app.py
CHANGED
@@ -78,7 +78,7 @@ contexts = [
|
|
78 |
def QA_similarity(question, contexts, n_answers=1):
|
79 |
|
80 |
context_df = pd.DataFrame(contexts,columns=['Context'])
|
81 |
-
contexts = context_df
|
82 |
|
83 |
# to use 'clips/mfaq' questions need to be prepended with <Q>, and answers with <A>.
|
84 |
question = "<Q>"+question
|
|
|
78 |
def QA_similarity(question, contexts, n_answers=1):
|
79 |
|
80 |
context_df = pd.DataFrame(contexts,columns=['Context'])
|
81 |
+
contexts = context_df['Context'].to_list()
|
82 |
|
83 |
# to use 'clips/mfaq' questions need to be prepended with <Q>, and answers with <A>.
|
84 |
question = "<Q>"+question
|