Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -76,7 +76,7 @@ def retrieve_context(query, contexts):
|
|
76 |
|
77 |
# Define your function to generate answers
|
78 |
def generate_answer(question, context, ground):
|
79 |
-
contexts = chunk_splitter(
|
80 |
context = retrieve_context(question, contexts)
|
81 |
|
82 |
# Combine question and context
|
|
|
76 |
|
77 |
# Define your function to generate answers
|
78 |
def generate_answer(question, context, ground):
|
79 |
+
contexts = chunk_splitter(context)
|
80 |
context = retrieve_context(question, contexts)
|
81 |
|
82 |
# Combine question and context
|