Update app.py
Browse files
app.py
CHANGED
|
@@ -37,7 +37,7 @@ def split_text(text, chunk_size=500, overlap=50):
|
|
| 37 |
|
| 38 |
def ask_mistral(question, context, hf_api_key):
|
| 39 |
# Load the Hugging Face Mistral model pipeline
|
| 40 |
-
nlp = pipeline("question-answering", model="
|
| 41 |
|
| 42 |
# Format the input
|
| 43 |
inputs = {
|
|
|
|
| 37 |
|
| 38 |
def ask_mistral(question, context, hf_api_key):
|
| 39 |
# Load the Hugging Face Mistral model pipeline
|
| 40 |
+
nlp = pipeline("question-answering", model="mistralai/Mistral-7B-v0.3", tokenizer="mistralai/Mistral-7B-v0.3", use_auth_token=hf_api_key)
|
| 41 |
|
| 42 |
# Format the input
|
| 43 |
inputs = {
|