dwh1142 commited on
Commit
88ee736
1 Parent(s): f371acd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -2,8 +2,8 @@ import gradio as gr
2
  from pypdf import PdfReader
3
  from transformers import pipeline
4
 
5
- model_name = "deepset/roberta-base-squad2"
6
- pipe = pipeline('question-answering', model=model_name, tokenizer=model_name)
7
 
8
  def predict(file_obj, question):
9
  docText = ""
 
2
  from pypdf import PdfReader
3
  from transformers import pipeline
4
 
5
+
6
+ pipe = pipeline("question-answering", model='distilbert-base-uncased-distilled-squad')
7
 
8
  def predict(file_obj, question):
9
  docText = ""