Minakshee25 commited on
Commit
9d83592
·
verified ·
1 Parent(s): eb82cea

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -7,6 +7,7 @@ import gradio as gr
7
 
8
 
9
  # Load the English language model
 
10
  nlp = spacy.load("en_core_web_sm")
11
  device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
12
  selfcheck_nli = SelfCheckNLI(device=device) # set device to 'cuda' if GPU is available
 
7
 
8
 
9
  # Load the English language model
10
+ spacy.cli.download('en_core_web_sm')
11
  nlp = spacy.load("en_core_web_sm")
12
  device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
13
  selfcheck_nli = SelfCheckNLI(device=device) # set device to 'cuda' if GPU is available