Spaces:
Sleeping
Sleeping
Upload app.py
Browse files
app.py
CHANGED
@@ -10,7 +10,7 @@ import os
|
|
10 |
##Function to load OpenAI model and get response
|
11 |
|
12 |
def get_openai_response(question):
|
13 |
-
llm=OpenAI(openai_api_key=os.
|
14 |
response=llm(question)
|
15 |
return response
|
16 |
|
@@ -29,5 +29,5 @@ submit=st.button("Ask the Question")
|
|
29 |
##if ask button is clicked
|
30 |
|
31 |
if submit:
|
32 |
-
st.
|
33 |
st.write(response)
|
|
|
10 |
##Function to load OpenAI model and get response
|
11 |
|
12 |
def get_openai_response(question):
|
13 |
+
llm=OpenAI(openai_api_key=os.getenv ("OPEN_API_KEY"),model_name="text-davinci-003",temperature=.6)
|
14 |
response=llm(question)
|
15 |
return response
|
16 |
|
|
|
29 |
##if ask button is clicked
|
30 |
|
31 |
if submit:
|
32 |
+
st.header("The Response is")
|
33 |
st.write(response)
|