Jforeverss commited on
Commit
5aa232e
·
verified ·
1 Parent(s): f3c083b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -3
app.py CHANGED
@@ -84,8 +84,6 @@ def explain_term(term):
84
  )
85
  return response['choices'][0]['message']['content']
86
 
87
- # Streamlit code to upload file
88
-
89
  st.title('FinChat')
90
 
91
  api_key = st.text_input("Enter your OpenAI API key:", type="password")
@@ -95,7 +93,7 @@ if api_key:
95
  openai.api_key = api_key
96
 
97
  openai.ChatCompletion.create(
98
- model="gpt-4.5-turbo",
99
  messages=[
100
  {"role": "system", "content": "You are a helpful assistant."},
101
  {"role": "user", "content": "Hello"},
 
84
  )
85
  return response['choices'][0]['message']['content']
86
 
 
 
87
  st.title('FinChat')
88
 
89
  api_key = st.text_input("Enter your OpenAI API key:", type="password")
 
93
  openai.api_key = api_key
94
 
95
  openai.ChatCompletion.create(
96
+ model="gpt-4-1106-preview",
97
  messages=[
98
  {"role": "system", "content": "You are a helpful assistant."},
99
  {"role": "user", "content": "Hello"},