Navanihk commited on
Commit
6f16ef5
·
1 Parent(s): 929d1c0
recommend_normal.py CHANGED
@@ -8,8 +8,7 @@ import difflib
8
  from huggingface_hub import hf_hub_download
9
 
10
  repo_id = "Navanihk/recommendationsystemmovie"
11
-
12
- cache_dir = os.path.join(os.getcwd(), 'hf_cache')
13
  os.makedirs(cache_dir, exist_ok=True)
14
  def load_data():
15
  try:
 
8
  from huggingface_hub import hf_hub_download
9
 
10
  repo_id = "Navanihk/recommendationsystemmovie"
11
+ cache_dir = '/tmp/hf_cache'
 
12
  os.makedirs(cache_dir, exist_ok=True)
13
  def load_data():
14
  try:
recommendwithdesc.py CHANGED
@@ -6,7 +6,7 @@ import os
6
  from huggingface_hub import hf_hub_download
7
 
8
  repo_id = "Navanihk/recommendationsystemmovie"
9
- cache_dir = os.path.join(os.getcwd(), 'hf_cache')
10
  os.makedirs(cache_dir, exist_ok=True)
11
  def load_data():
12
  try:
 
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:
recommendwithhist.py CHANGED
@@ -12,7 +12,7 @@ from huggingface_hub import hf_hub_download,HfFolder
12
  from nltk.stem import PorterStemmer
13
  from nltk.tokenize import word_tokenize
14
  repo_id = "Navanihk/recommendationsystemmovie"
15
- cache_dir = os.path.join(os.getcwd(), 'hf_cache')
16
  os.makedirs(cache_dir, exist_ok=True)
17
  def stemmed_tokenizer(text):
18
  ps = PorterStemmer()
 
12
  from nltk.stem import PorterStemmer
13
  from nltk.tokenize import word_tokenize
14
  repo_id = "Navanihk/recommendationsystemmovie"
15
+ cache_dir = '/tmp/hf_cache'
16
  os.makedirs(cache_dir, exist_ok=True)
17
  def stemmed_tokenizer(text):
18
  ps = PorterStemmer()