Mohamed-Ayman commited on
Commit
f9e862c
·
verified ·
1 Parent(s): 41b88f1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -0
app.py CHANGED
@@ -1,3 +1,12 @@
 
 
 
 
 
 
 
 
 
1
  import gradio as gr
2
  import torch
3
  import spacy
 
1
+ import spacy
2
+ import nltk
3
+
4
+ # Download the small English model for spaCy
5
+ spacy.cli.download("en_core_web_sm")
6
+
7
+ # Download stopwords for nltk
8
+ nltk.download("stopwords")
9
+
10
  import gradio as gr
11
  import torch
12
  import spacy