PierreHanna commited on
Commit
41539cc
Β·
1 Parent(s): a8356aa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -13,7 +13,7 @@ import datetime
13
  from huggingface_hub import hf_hub_download
14
  encoder_text_path = hf_hub_download(repo_id="PierreHanna/TextRetrieval", repo_type="space", filename="encoder_text_retrievaltext_bmg_221022_54.h5",
15
  use_auth_token=os.environ['TOKEN'])
16
-
17
  # NO GPU
18
  os.environ['CUDA_VISIBLE_DEVICES'] = '-1'
19
  os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3'
@@ -23,6 +23,7 @@ os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3'
23
 
24
  python_path = hf_hub_download(repo_id="PierreHanna/TextRetrieval", repo_type="space", filename="models.py",
25
  use_auth_token=os.environ['TOKEN'], cache_dir=".")
 
26
  os.system('ls -la')
27
  from models import *
28
 
 
13
  from huggingface_hub import hf_hub_download
14
  encoder_text_path = hf_hub_download(repo_id="PierreHanna/TextRetrieval", repo_type="space", filename="encoder_text_retrievaltext_bmg_221022_54.h5",
15
  use_auth_token=os.environ['TOKEN'])
16
+ print("DEBUG ", encoder_text_path)
17
  # NO GPU
18
  os.environ['CUDA_VISIBLE_DEVICES'] = '-1'
19
  os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3'
 
23
 
24
  python_path = hf_hub_download(repo_id="PierreHanna/TextRetrieval", repo_type="space", filename="models.py",
25
  use_auth_token=os.environ['TOKEN'], cache_dir=".")
26
+ print(python_path)
27
  os.system('ls -la')
28
  from models import *
29