thak123 commited on
Commit
99ad178
·
1 Parent(s): c4543eb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -12,7 +12,7 @@ import gradio as gr
12
  device = config.device
13
  model = BERTBaseUncased()
14
  model.load_state_dict(torch.load(
15
- model_path, map_location=torch.device(device)))
16
  model.to(device)
17
 
18
  # T = tokenizer.TweetTokenizer(
 
12
  device = config.device
13
  model = BERTBaseUncased()
14
  model.load_state_dict(torch.load(
15
+ config.MODEL_PATH, map_location=torch.device(device)))
16
  model.to(device)
17
 
18
  # T = tokenizer.TweetTokenizer(