Navanihk commited on
Commit
bc0ceb6
·
1 Parent(s): 3c6ebc2
Files changed (1) hide show
  1. recommendwithdesc.py +3 -1
recommendwithdesc.py CHANGED
@@ -4,10 +4,12 @@ import numpy as np
4
  import pandas as pd
5
  import os
6
  from huggingface_hub import hf_hub_download
7
-
8
  repo_id = "Navanihk/recommendationsystemmovie"
9
  cache_dir = '/tmp/hf_cache'
10
  os.makedirs(cache_dir, exist_ok=True)
 
 
11
  def load_data():
12
  try:
13
 
 
4
  import pandas as pd
5
  import os
6
  from huggingface_hub import hf_hub_download
7
+ import nltk
8
  repo_id = "Navanihk/recommendationsystemmovie"
9
  cache_dir = '/tmp/hf_cache'
10
  os.makedirs(cache_dir, exist_ok=True)
11
+ nltk.data.path.append(cache_dir)
12
+ nltk.download('punkt', download_dir=cache_dir)
13
  def load_data():
14
  try:
15