kantundpeterpan commited on
Commit
7d87067
·
1 Parent(s): 25d6c5f
Files changed (1) hide show
  1. tasks/text.py +2 -2
tasks/text.py CHANGED
@@ -15,13 +15,13 @@ import joblib
15
  REPO_ID = "kantundpeterpan/frugal-ai-toy"
16
  MODEL = "tfidf_rf.skops"
17
 
 
18
  if not os.path.exists("tasks/model"):
19
  #download model for text task
20
  download(repo_id = REPO_ID, dst = "tasks/model")
21
 
22
- #add model directory to python path to be able to load tools.py
23
  import sys
24
- import os
25
  sys.path.append(os.path.abspath('tasks/model'))
26
 
27
 
 
15
  REPO_ID = "kantundpeterpan/frugal-ai-toy"
16
  MODEL = "tfidf_rf.skops"
17
 
18
+ import os
19
  if not os.path.exists("tasks/model"):
20
  #download model for text task
21
  download(repo_id = REPO_ID, dst = "tasks/model")
22
 
 
23
  import sys
24
+ #add model directory to python path to be able to load tools.py
25
  sys.path.append(os.path.abspath('tasks/model'))
26
 
27