zArabi commited on
Commit
cb53036
1 Parent(s): dcf0a46

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
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)