Posm commited on
Commit
3952ecb
·
verified ·
1 Parent(s): c6cdc6d

Update worker.py

Browse files
Files changed (1) hide show
  1. worker.py +8 -0
worker.py CHANGED
@@ -1,3 +1,11 @@
 
 
 
 
 
 
 
 
1
  from llama_index.core.tools import FunctionTool
2
  from llama_index.llms.openai import OpenAI
3
  from dotenv import load_dotenv
 
1
+ import huggingface_hub
2
+ print(huggingface_hub.__version__)
3
+
4
+ from huggingface_hub import snapshot_download
5
+ model_path = snapshot_download(repo_id="Posm/structured-planning-ai", repo_type="model")
6
+ print(f"Model downloaded: {model_path}")
7
+ #You can ignore this scripts
8
+
9
  from llama_index.core.tools import FunctionTool
10
  from llama_index.llms.openai import OpenAI
11
  from dotenv import load_dotenv