Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -21,7 +21,7 @@ app = FastAPI()
|
|
21 |
vqa_pipeline = pipeline("image-to-text", model="Salesforce/blip-vqa-base")
|
22 |
code_generator = pipeline("text-generation", model="openai-community/gpt2-medium")
|
23 |
table_analyzer = pipeline("table-question-answering", model="google/tapas-large-finetuned-wtq")
|
24 |
-
qa_pipeline = pipeline("question-answering", model="
|
25 |
|
26 |
# β
Functions for Document & Image QA
|
27 |
def extract_text_from_pdf(pdf_file):
|
|
|
21 |
vqa_pipeline = pipeline("image-to-text", model="Salesforce/blip-vqa-base")
|
22 |
code_generator = pipeline("text-generation", model="openai-community/gpt2-medium")
|
23 |
table_analyzer = pipeline("table-question-answering", model="google/tapas-large-finetuned-wtq")
|
24 |
+
qa_pipeline = pipeline("question-answering", model="google/flan-t5-large ") # β
FIXED MODEL
|
25 |
|
26 |
# β
Functions for Document & Image QA
|
27 |
def extract_text_from_pdf(pdf_file):
|