TheDemond commited on
Commit
279fe8e
·
verified ·
1 Parent(s): 82b4581

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
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