Spaces:
Runtime error
Runtime error
amitguitarist
commited on
Commit
•
7f562b6
1
Parent(s):
d59fb9f
Update app.py
Browse files
app.py
CHANGED
@@ -8,7 +8,8 @@ import os
|
|
8 |
# Function to load OpenAI and get response
|
9 |
|
10 |
def get_openai_response(question):
|
11 |
-
llm=OpenAI(
|
|
|
12 |
temperature=0.6)
|
13 |
response = llm(question)
|
14 |
return response
|
|
|
8 |
# Function to load OpenAI and get response
|
9 |
|
10 |
def get_openai_response(question):
|
11 |
+
llm=OpenAI(openai_api_key=os.environ["OPENAI_API_KEY"],
|
12 |
+
model_name="gpt-3.5-turbo-instruct",
|
13 |
temperature=0.6)
|
14 |
response = llm(question)
|
15 |
return response
|