Skip to content

Commit

Permalink
Update searchAnswerPDF.py
Browse files Browse the repository at this point in the history
  • Loading branch information
rohitgandikota authored Jun 21, 2022
1 parent 06e8202 commit 91232af
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions searchAnswerPDF.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
from transformers import BertTokenizer
import PyPDF2
import os
os.environ["https_proxy"] = "http://radhakrishna_k:[email protected]:8080"
os.environ["http_proxy"] = "http://radhakrishna_k:[email protected]:8080"
#%% Run the code below [ONLY ONCE] when running the code for the first time ever
# Downloading tokenizer file for model using python as file is huge
'''
Expand Down Expand Up @@ -141,4 +139,4 @@ def find_factors(x):
answer = findAnswerPDF(question,pdf_path,model_path)

print(f'Question : {question}')
print(f' Answer : {answer}')
print(f' Answer : {answer}')

0 comments on commit 91232af

Please sign in to comment.