bofenghuang commited on
Commit
8ac5039
·
1 Parent(s): 7d563eb

Add nltk download

Browse files
Files changed (1) hide show
  1. run_demo_low_api_openai.py +5 -1
run_demo_low_api_openai.py CHANGED
@@ -15,9 +15,13 @@ import pytube as pt
15
  import torch
16
  import whisper
17
  from huggingface_hub import hf_hub_download, model_info
18
- from nltk.tokenize import sent_tokenize
19
  from transformers.utils.logging import disable_progress_bar
20
 
 
 
 
 
 
21
  warnings.filterwarnings("ignore")
22
  disable_progress_bar()
23
 
 
15
  import torch
16
  import whisper
17
  from huggingface_hub import hf_hub_download, model_info
 
18
  from transformers.utils.logging import disable_progress_bar
19
 
20
+ import nltk
21
+ nltk.download("punkt")
22
+
23
+ from nltk.tokenize import sent_tokenize
24
+
25
  warnings.filterwarnings("ignore")
26
  disable_progress_bar()
27