nilkanth007 commited on
Commit
b77caaf
·
verified ·
1 Parent(s): 3479e9b

api key added

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -52,7 +52,7 @@ if data:
52
  st.write(fetched_data)
53
 
54
  # Initialize a ChatOpenAI instance with the specified model name "gpt-3.5-turbo" and a temperature of 0.9.
55
- chat = ChatOpenAI(model_name="gpt-3.5-turbo", temperature=0.9)
56
 
57
  # Create a SystemMessage instance with the specified content, providing information about the assistant's role.
58
  systemMessage = SystemMessage(content="You are a code review assistant. Provide detailed suggestions to improve the given Python code along by mentioning the existing code line by line with proper indent")
 
52
  st.write(fetched_data)
53
 
54
  # Initialize a ChatOpenAI instance with the specified model name "gpt-3.5-turbo" and a temperature of 0.9.
55
+ chat = ChatOpenAI(os.getenv("OPENAI_API_KEY"),model_name="gpt-3.5-turbo", temperature=0.9,ap)
56
 
57
  # Create a SystemMessage instance with the specified content, providing information about the assistant's role.
58
  systemMessage = SystemMessage(content="You are a code review assistant. Provide detailed suggestions to improve the given Python code along by mentioning the existing code line by line with proper indent")