SaileshSivan commited on
Commit
0c68525
·
1 Parent(s): 3055acb

Updated app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -1,12 +1,12 @@
1
  from langchain.llms import OpenAI
2
- from dotenv import load_dotenv
3
  import streamlit as st
4
- from properties import *
5
  import os
6
- load_dotenv() # get the environment variable from .env
7
 
8
  def get_openai_response(question):
9
- llm = OpenAI(openai_api_key=OPEN_API_KEY,model_name = "text-davinci-003", temperature = 0.5)
10
  response = llm(question)
11
  return response
12
  #streamlit app
 
1
  from langchain.llms import OpenAI
2
+ # from dotenv import load_dotenv
3
  import streamlit as st
4
+ # from properties import *
5
  import os
6
+ # load_dotenv() # get the environment variable from .env
7
 
8
  def get_openai_response(question):
9
+ llm = OpenAI(model_name = "text-davinci-003", temperature = 0.5)
10
  response = llm(question)
11
  return response
12
  #streamlit app