Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -20,6 +20,7 @@ config = BertConfig.from_pretrained(
|
|
20 |
label2id=label2id)
|
21 |
|
22 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
|
|
23 |
path="parsbert-final-v1(epoch3).bin"
|
24 |
downloadedModel = hf_hub_download(repo_id="zArabi/Persian-Sentiment-Analysis", filename=path)
|
25 |
loaded_model = torch.load(downloadedModel,map_location=device)
|
|
|
20 |
label2id=label2id)
|
21 |
|
22 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
23 |
+
|
24 |
path="parsbert-final-v1(epoch3).bin"
|
25 |
downloadedModel = hf_hub_download(repo_id="zArabi/Persian-Sentiment-Analysis", filename=path)
|
26 |
loaded_model = torch.load(downloadedModel,map_location=device)
|