Update app.py
Browse files
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 |
-
|
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(
|