Spaces:
Sleeping
Sleeping
Upload app.py
Browse files
app.py
CHANGED
@@ -2,7 +2,9 @@ import torch
|
|
2 |
import gradio as gr
|
3 |
from Vocabulary import spacy_tokenizer
|
4 |
from Model_define import Sentiment_LSTM
|
|
|
5 |
|
|
|
6 |
|
7 |
device = 'gpu' if torch.cuda.is_available() else 'cpu'
|
8 |
|
|
|
2 |
import gradio as gr
|
3 |
from Vocabulary import spacy_tokenizer
|
4 |
from Model_define import Sentiment_LSTM
|
5 |
+
import os
|
6 |
|
7 |
+
os.system('python -m spacy download en_core_web_sm')
|
8 |
|
9 |
device = 'gpu' if torch.cuda.is_available() else 'cpu'
|
10 |
|