cpnepo commited on
Commit
a3cd209
1 Parent(s): 1596d13

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -6,7 +6,6 @@ from transformers import (AutoModelForQuestionAnswering,
6
 
7
  import pandas as pd
8
  import regex as re
9
- import io
10
 
11
  # Select model for question answering
12
  model_name = "deepset/roberta-base-squad2"
@@ -23,7 +22,7 @@ pipe = pipeline('question-answering', model=model_name, tokenizer=model_name)
23
  # response = request.urlopen(url)
24
  # book1_raw_0 = response.read().decode('utf8')
25
 
26
- book1_raw_0 = io.open("book_1.txt", mode="r", encoding="utf-8").read()
27
 
28
  # Text pre-processing
29
  # Remove page statements
 
6
 
7
  import pandas as pd
8
  import regex as re
 
9
 
10
  # Select model for question answering
11
  model_name = "deepset/roberta-base-squad2"
 
22
  # response = request.urlopen(url)
23
  # book1_raw_0 = response.read().decode('utf8')
24
 
25
+ book1_raw_0 = open("book_1.txt", mode="r", encoding="utf-8").read()
26
 
27
  # Text pre-processing
28
  # Remove page statements