Update app.py
Browse files
app.py
CHANGED
|
@@ -27,7 +27,7 @@ def process_invoice(file, questions):
|
|
| 27 |
|
| 28 |
# Initialize the Hugging Face pipeline
|
| 29 |
print("Initializing the Hugging Face pipeline...")
|
| 30 |
-
qa_pipeline = pipeline("question-answering", model="mistralai/
|
| 31 |
|
| 32 |
answers = {}
|
| 33 |
for question in questions.split(','):
|
|
|
|
| 27 |
|
| 28 |
# Initialize the Hugging Face pipeline
|
| 29 |
print("Initializing the Hugging Face pipeline...")
|
| 30 |
+
qa_pipeline = pipeline("question-answering", model="mistralai/Mistral-7B-Instruct-v0.2", use_auth_token=hf_token)
|
| 31 |
|
| 32 |
answers = {}
|
| 33 |
for question in questions.split(','):
|