Spaces:
Sleeping
Sleeping
Commit
·
752919d
1
Parent(s):
2bbe453
Update main.py
Browse files
main.py
CHANGED
@@ -2,7 +2,7 @@ import pandas as pd
|
|
2 |
import model
|
3 |
def chatbot(question):
|
4 |
# Provide a context or passage where the answer can be found
|
5 |
-
with open(r"
|
6 |
context = file.read()
|
7 |
# Use the question-answering model to find the answer
|
8 |
answer = model.qa_pipeline(question=question, context=context)
|
|
|
2 |
import model
|
3 |
def chatbot(question):
|
4 |
# Provide a context or passage where the answer can be found
|
5 |
+
with open(r"Data.txt", "r", encoding="utf-8") as file:
|
6 |
context = file.read()
|
7 |
# Use the question-answering model to find the answer
|
8 |
answer = model.qa_pipeline(question=question, context=context)
|