Spaces:
Runtime error
Runtime error
Update ques_2.py
Browse files
ques_2.py
CHANGED
|
@@ -23,7 +23,7 @@ def main():
|
|
| 23 |
llm = ChatOpenAI(
|
| 24 |
model_name="gpt-3.5-turbo",
|
| 25 |
temperature=0,
|
| 26 |
-
openai_api_key=
|
| 27 |
)
|
| 28 |
template = """Use the following pieces of context to answer the question at the end.
|
| 29 |
If you don't know the answer, just say that you don't know, don't try to make up an answer.
|
|
|
|
| 23 |
llm = ChatOpenAI(
|
| 24 |
model_name="gpt-3.5-turbo",
|
| 25 |
temperature=0,
|
| 26 |
+
openai_api_key=os.environ['OPENAI_API_KEY'],
|
| 27 |
)
|
| 28 |
template = """Use the following pieces of context to answer the question at the end.
|
| 29 |
If you don't know the answer, just say that you don't know, don't try to make up an answer.
|