Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -18,7 +18,7 @@ def crear_indice():
|
|
18 |
def load_qa_model():
|
19 |
|
20 |
tokenizer = AutoTokenizer.from_pretrained('mrm8488/distill-bert-base-spanish-wwm-cased-finetuned-spa-squad2-es', use_fast="false")
|
21 |
-
model = TFDistilBertForQuestionAnswering.from_pretrained("mrm8488/distill-bert-base-spanish-wwm-cased-finetuned-spa-squad2-es")
|
22 |
return model
|
23 |
|
24 |
# 4. Use streamlit to create a web app
|
|
|
18 |
def load_qa_model():
|
19 |
|
20 |
tokenizer = AutoTokenizer.from_pretrained('mrm8488/distill-bert-base-spanish-wwm-cased-finetuned-spa-squad2-es', use_fast="false")
|
21 |
+
model = TFDistilBertForQuestionAnswering.from_pretrained("mrm8488/distill-bert-base-spanish-wwm-cased-finetuned-spa-squad2-es", from_pt=True)
|
22 |
return model
|
23 |
|
24 |
# 4. Use streamlit to create a web app
|