it4xperts commited on
Commit
6998fd2
1 Parent(s): c4f5276

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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.egetenv("OPEN_API_KEY"),model_name="text-davinci-003",temperature=.6)
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.subjeader("The Response is")
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)