Raiff1982 commited on
Commit
6c797e9
·
verified ·
1 Parent(s): f1e6abe

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -22,7 +22,9 @@ from concurrent.futures import ThreadPoolExecutor
22
  import gradio as gr
23
 
24
  # Download required NLTK data
25
- try:
 
 
26
  nltk.data.find('tokenizers/punkt')
27
  nltk.data.find('corpora/wordnet')
28
  except LookupError:
 
22
  import gradio as gr
23
 
24
  # Download required NLTK data
25
+ def _tokenize_and_lemmatize(self, signal_lower):
26
+ return signal_lower.split() # Simple split as a fallback
27
+ try:
28
  nltk.data.find('tokenizers/punkt')
29
  nltk.data.find('corpora/wordnet')
30
  except LookupError: