angjustinl
commited on
Commit
·
40aab8c
1
Parent(s):
5e71902
fix: Load .env file before import.
Browse files- owl/run.py +4 -2
owl/run.py
CHANGED
@@ -1,10 +1,13 @@
|
|
|
|
|
|
|
|
1 |
from camel.models import ModelFactory
|
2 |
from camel.toolkits import *
|
3 |
from camel.types import ModelPlatformType, ModelType
|
4 |
from camel.configs import ChatGPTConfig
|
5 |
|
6 |
from typing import List, Dict
|
7 |
-
|
8 |
from retry import retry
|
9 |
from loguru import logger
|
10 |
|
@@ -12,7 +15,6 @@ from utils import OwlRolePlaying, process_tools, run_society
|
|
12 |
import os
|
13 |
|
14 |
|
15 |
-
load_dotenv()
|
16 |
|
17 |
|
18 |
def construct_society(question: str) -> OwlRolePlaying:
|
|
|
1 |
+
from dotenv import load_dotenv
|
2 |
+
load_dotenv()
|
3 |
+
|
4 |
from camel.models import ModelFactory
|
5 |
from camel.toolkits import *
|
6 |
from camel.types import ModelPlatformType, ModelType
|
7 |
from camel.configs import ChatGPTConfig
|
8 |
|
9 |
from typing import List, Dict
|
10 |
+
|
11 |
from retry import retry
|
12 |
from loguru import logger
|
13 |
|
|
|
15 |
import os
|
16 |
|
17 |
|
|
|
18 |
|
19 |
|
20 |
def construct_society(question: str) -> OwlRolePlaying:
|