nabin2004 commited on
Commit
59cdab5
·
1 Parent(s): 96302eb

update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -32,8 +32,8 @@ def main():
32
  tokenizer = DistilBertTokenizer.from_pretrained(model_name)
33
  model = DistilBertForQuestionAnswering.from_pretrained(model_name)
34
 
35
- # Read the context from the text file with 'latin1' encoding
36
- with open("context.txt", "r", encoding="latin1") as file:
37
  context = file.read()
38
 
39
  if text:
 
32
  tokenizer = DistilBertTokenizer.from_pretrained(model_name)
33
  model = DistilBertForQuestionAnswering.from_pretrained(model_name)
34
 
35
+ # Read the context from the text file
36
+ with open("context.txt", "r") as file:
37
  context = file.read()
38
 
39
  if text: