sashtech commited on
Commit
a5827d8
·
verified ·
1 Parent(s): a8d58c2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -16,6 +16,7 @@ def install_java():
16
  install_java()
17
 
18
  # Ensure necessary NLTK data is downloaded
 
19
  nltk.download('wordnet')
20
  nltk.download('omw-1.4')
21
  nltk.download('punkt') # Download the Punkt tokenizer for sentence tokenization
@@ -127,4 +128,3 @@ with gr.Blocks() as interface:
127
 
128
  # Launch the Gradio app
129
  interface.launch(debug=False)
130
-
 
16
  install_java()
17
 
18
  # Ensure necessary NLTK data is downloaded
19
+ nltk.data.path.append('/usr/local/share/nltk_data/') # Ensure the correct path for NLTK data
20
  nltk.download('wordnet')
21
  nltk.download('omw-1.4')
22
  nltk.download('punkt') # Download the Punkt tokenizer for sentence tokenization
 
128
 
129
  # Launch the Gradio app
130
  interface.launch(debug=False)