Spaces:
Sleeping
Sleeping
barghavani
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -6,7 +6,7 @@ from transformers import pipeline
|
|
6 |
import gradio as gr
|
7 |
|
8 |
|
9 |
-
question_answerer = pipeline(
|
10 |
|
11 |
|
12 |
def get_text_from_pdf(pdf_file: Union[str, Path]) -> str:
|
|
|
6 |
import gradio as gr
|
7 |
|
8 |
|
9 |
+
question_answerer = pipeline("question-answering", model="deepset/roberta-base-squad2")
|
10 |
|
11 |
|
12 |
def get_text_from_pdf(pdf_file: Union[str, Path]) -> str:
|