Serg4451D commited on
Commit
72274c8
·
verified ·
1 Parent(s): f2f6b48

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -8,8 +8,8 @@ client = Client()
8
  st.set_page_config(page_title="Chat with GPT", page_icon="🤖", layout="wide")
9
 
10
  # Заголовок и описание
11
- st.title("Chat with GPT-3.5-turbo")
12
- st.write("Welcome to the GPT-3.5-turbo chat interface. Ask me anything!")
13
 
14
  # Создание боковой панели для ввода сообщения
15
  with st.sidebar:
@@ -23,7 +23,7 @@ chat_container = st.container()
23
  if send_button and user_input:
24
  # Отправка запроса к GPT
25
  response = client.chat.completions.create(
26
- model="gpt-3.5-turbo",
27
  messages=[{"role": "user", "content": user_input}],
28
  )
29
 
@@ -65,4 +65,4 @@ st.image("https://via.placeholder.com/150", caption="GPT-3.5-turbo", use_column_
65
  st.markdown("---")
66
 
67
  # Пример добавления ссылки
68
- st.markdown("[Learn more about GPT-3.5-turbo](https://platform.openai.com/docs/models/gpt-3-5)")
 
8
  st.set_page_config(page_title="Chat with GPT", page_icon="🤖", layout="wide")
9
 
10
  # Заголовок и описание
11
+ st.title("Chat with GPT-4o")
12
+ st.write("Welcome to the GPT-4o chat interface. Ask me anything!")
13
 
14
  # Создание боковой панели для ввода сообщения
15
  with st.sidebar:
 
23
  if send_button and user_input:
24
  # Отправка запроса к GPT
25
  response = client.chat.completions.create(
26
+ model="gpt-4o",
27
  messages=[{"role": "user", "content": user_input}],
28
  )
29
 
 
65
  st.markdown("---")
66
 
67
  # Пример добавления ссылки
68
+ st.markdown("[Learn more about GPT-4](https://platform.openai.com/docs/models/gpt-4)")