thak123 commited on
Commit
bf10c4f
1 Parent(s): 5266581

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -4
app.py CHANGED
@@ -41,14 +41,11 @@ convert_func_dict = {
41
 
42
  features_dict = convert_to_features(dataset_dict, convert_func_dict)
43
 
44
- from huggingface_hub import hf_hub_download,snapshot_download
45
- snapshot_download(repo_id="FFZG-cleopatra/Croatian-News-Classifier")
46
-
47
 
48
 
49
  # multitask_model.from_pretrained(, config="/media/gaurish/angela/projects/CroatianSlovenEnglishBert/i-got-u-brother-cleopatra-workshop/src/models/multitask_model_3ep/config.json")
50
  multitask_model.load_state_dict(torch.load(
51
- "/home/gaurishthakkar/projects/i-got-u-brother-cleopatra-workshop/src/models/multitask_model_3ep/pytorch_model.bin"
52
  ))
53
  device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
54
  multitask_model.to(device)
 
41
 
42
  features_dict = convert_to_features(dataset_dict, convert_func_dict)
43
 
 
 
 
44
 
45
 
46
  # multitask_model.from_pretrained(, config="/media/gaurish/angela/projects/CroatianSlovenEnglishBert/i-got-u-brother-cleopatra-workshop/src/models/multitask_model_3ep/config.json")
47
  multitask_model.load_state_dict(torch.load(
48
+ "multitask_model_3ep/pytorch_model.bin"
49
  ))
50
  device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
51
  multitask_model.to(device)