Spaces:
Running
Running
Update app.py
Browse files
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(os.getenv("OPENAI_API_KEY"),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)
|
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")
|