pvanand commited on
Commit
48751e3
·
1 Parent(s): 6ea2848

Update actions/actions_llm.py

Browse files
Files changed (1) hide show
  1. actions/actions_llm.py +9 -1
actions/actions_llm.py CHANGED
@@ -1,7 +1,15 @@
1
  # run_search.py
 
 
2
  import openai
 
 
 
 
 
 
3
  from search_content import main_search
4
- import os
5
 
6
  # Import api key from secrets
7
  secret_value_0 = os.environ.get("openai")
 
1
  # run_search.py
2
+ import os
3
+ import sys
4
  import openai
5
+
6
+ # Add "/actions" to the sys.path
7
+ actions_path = os.path.abspath("/actions")
8
+ sys.path.insert(0, actions_path)
9
+
10
+ # Import search_content.py from /actions folder
11
  from search_content import main_search
12
+
13
 
14
  # Import api key from secrets
15
  secret_value_0 = os.environ.get("openai")