Update app.py
Browse files
app.py
CHANGED
@@ -11,13 +11,6 @@ import gradio as gr
|
|
11 |
|
12 |
# DEVICE = config.device
|
13 |
|
14 |
-
import requests
|
15 |
-
URL = "https://huggingface.co/thak123/bert-emoji-latvian-twitter-classifier/resolve/main/model.bin"
|
16 |
-
response = requests.get(URL)
|
17 |
-
open("model.bin", "wb").write(response.content)
|
18 |
-
|
19 |
-
model_path = "pytorch_model.bin"
|
20 |
-
|
21 |
# model = AutoModel.from_pretrained("thak123/bert-emoji-latvian-twitter-classifier")
|
22 |
# 7 EPOCH Version
|
23 |
# BERT_PATH = "FFZG-cleopatra/bert-emoji-latvian-twitter"
|
|
|
11 |
|
12 |
# DEVICE = config.device
|
13 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
14 |
# model = AutoModel.from_pretrained("thak123/bert-emoji-latvian-twitter-classifier")
|
15 |
# 7 EPOCH Version
|
16 |
# BERT_PATH = "FFZG-cleopatra/bert-emoji-latvian-twitter"
|