Spaces:
Sleeping
Sleeping
Update function.py
Browse files- function.py +1 -1
function.py
CHANGED
|
@@ -11,7 +11,7 @@ def get_answers(questions,model):
|
|
| 11 |
|
| 12 |
|
| 13 |
if model == "Open AI":
|
| 14 |
-
llm = OpenAI(temperature=0.
|
| 15 |
answers = llm(answer_prompt)
|
| 16 |
# return questions
|
| 17 |
|
|
|
|
| 11 |
|
| 12 |
|
| 13 |
if model == "Open AI":
|
| 14 |
+
llm = OpenAI(temperature=0.8, openai_api_key=st.secrets["OPENAI_API_KEY"])
|
| 15 |
answers = llm(answer_prompt)
|
| 16 |
# return questions
|
| 17 |
|