Spaces:
Runtime error
Runtime error
ferdmartin
commited on
Commit
·
2bd4c4b
1
Parent(s):
f717bdd
Update app.py
Browse files
app.py
CHANGED
@@ -108,9 +108,9 @@ def main():
|
|
108 |
Load trained Transformer-based models and save in cache memory.
|
109 |
"""
|
110 |
if option == "BERT-based model":
|
111 |
-
model = HF_BertBasedModelAppDocs.from_pretrained("ferdmartin/
|
112 |
else:
|
113 |
-
model = HF_DistilBertBasedModelAppDocs.from_pretrained("ferdmartin/
|
114 |
return model
|
115 |
|
116 |
|
|
|
108 |
Load trained Transformer-based models and save in cache memory.
|
109 |
"""
|
110 |
if option == "BERT-based model":
|
111 |
+
model = HF_BertBasedModelAppDocs.from_pretrained("ferdmartin/HF_BertBasedModelAppDocs2").to(device)
|
112 |
else:
|
113 |
+
model = HF_DistilBertBasedModelAppDocs.from_pretrained("ferdmartin/HF_DistilBertBasedModelAppDocs2").to(device)
|
114 |
return model
|
115 |
|
116 |
|