Update app.py
Browse files
app.py
CHANGED
@@ -2,8 +2,8 @@ import gradio as gr
|
|
2 |
from pypdf import PdfReader
|
3 |
from transformers import pipeline
|
4 |
|
5 |
-
|
6 |
-
pipe = pipeline(
|
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 = ""
|