Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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
|