Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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-
|
12 |
-
st.write("Welcome to the GPT-
|
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-
|
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-
|
|
|
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)")
|