Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -6,12 +6,6 @@ from langchain.prompts import HumanMessagePromptTemplate, ChatPromptTemplate
|
|
6 |
from langchain.output_parsers import PydanticOutputParser
|
7 |
from langchain_openai import ChatOpenAI
|
8 |
|
9 |
-
|
10 |
-
# with open('openai_api_key.txt') as f:
|
11 |
-
# api_key = f.read()
|
12 |
-
|
13 |
-
# os.environ['OPENAI_API_KEY'] = api_key
|
14 |
-
|
15 |
chat = ChatOpenAI()
|
16 |
|
17 |
# Define the Pydantic Model
|
|
|
6 |
from langchain.output_parsers import PydanticOutputParser
|
7 |
from langchain_openai import ChatOpenAI
|
8 |
|
|
|
|
|
|
|
|
|
|
|
|
|
9 |
chat = ChatOpenAI()
|
10 |
|
11 |
# Define the Pydantic Model
|