Spaces:
Sleeping
Sleeping
Update FC_tool_main.py
Browse files- FC_tool_main.py +2 -2
FC_tool_main.py
CHANGED
@@ -42,8 +42,8 @@ from langchain.agents.format_scratchpad import format_to_openai_functions
|
|
42 |
from langchain.memory import ConversationBufferWindowMemory
|
43 |
from dotenv import load_dotenv, find_dotenv
|
44 |
|
45 |
-
_ = load_dotenv(find_dotenv()) # read local .env file
|
46 |
-
openai.api_key = os.environ['OPENAI_API_KEY']
|
47 |
|
48 |
def get_temperature():
|
49 |
return 0 #Default value
|
|
|
42 |
from langchain.memory import ConversationBufferWindowMemory
|
43 |
from dotenv import load_dotenv, find_dotenv
|
44 |
|
45 |
+
# _ = load_dotenv(find_dotenv()) # read local .env file
|
46 |
+
openai.api_key = os.getenv('OPENAI_API_KEY') #os.environ['OPENAI_API_KEY']
|
47 |
|
48 |
def get_temperature():
|
49 |
return 0 #Default value
|