update
This commit is contained in:
parent
c0e93d145a
commit
f1992f74df
@ -0,0 +1,86 @@
|
||||
.baseContainer {
|
||||
max-width: 1000px;
|
||||
margin: auto;
|
||||
width: 90%;
|
||||
}
|
||||
#root .stApp {
|
||||
background-color: #e2e2e2;
|
||||
color: #000;
|
||||
}
|
||||
#root .stApp header {
|
||||
display: none;
|
||||
}
|
||||
#root .stApp .appview-container {
|
||||
inset: 0px 0 8rem;
|
||||
}
|
||||
#root .stApp .block-container {
|
||||
padding: 0;
|
||||
}
|
||||
#root .stApp .stChatMessage {
|
||||
margin: auto;
|
||||
width: 100%;
|
||||
align-items: center;
|
||||
justify-items: center;
|
||||
justify-content: center;
|
||||
padding: 1rem;
|
||||
}
|
||||
#root .stApp div[data-testid=stChatMessageContent] {
|
||||
width: 980px;
|
||||
margin: 0;
|
||||
flex-grow: 0;
|
||||
}
|
||||
#root .stApp .stChatFloatingInputContainer {
|
||||
background: transparent;
|
||||
width: 100%;
|
||||
}
|
||||
#root .stApp .stChatInputContainer {
|
||||
max-width: 1000px;
|
||||
margin: auto;
|
||||
width: 90%;
|
||||
border: #000 1px solid;
|
||||
outline: none;
|
||||
}
|
||||
#root .stApp .stChatInputContainer div[data-baseweb="textarea"] {
|
||||
border: none;
|
||||
}
|
||||
#root .stApp .stChatInputContainer textarea {
|
||||
outline: none;
|
||||
}
|
||||
#root .stApp .stChatInputContainer .st-ah {
|
||||
width: 100%;
|
||||
border: none;
|
||||
}
|
||||
#root .example .chat-demo {
|
||||
overflow: auto;
|
||||
padding-top: 60px;
|
||||
width: 1000px;
|
||||
margin: auto;
|
||||
text-align: center;
|
||||
}
|
||||
#root .example .logo {
|
||||
width: 118px;
|
||||
height: auto;
|
||||
}
|
||||
#root .example .case-list {
|
||||
margin-top: 40px;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
}
|
||||
#root .example .case-col {
|
||||
width: 300px;
|
||||
}
|
||||
#root .example .case-title {
|
||||
font-size: 22px;
|
||||
font-weight: 700;
|
||||
color: #353535;
|
||||
margin-bottom: 30px;
|
||||
}
|
||||
#root .example .case-item {
|
||||
cursor: pointer;
|
||||
margin: 20px 10px;
|
||||
background-color: #fff;
|
||||
border-radius: 5px;
|
||||
color: #373737;
|
||||
padding: 15px 10px;
|
||||
font-size: 12px;
|
||||
}
|
@ -1,11 +1,11 @@
|
||||
import streamlit as st
|
||||
|
||||
st.set_page_config(
|
||||
page_title="web-demo",
|
||||
page_title="灵创对话",
|
||||
page_icon=":web-demo:",
|
||||
layout="wide",
|
||||
)
|
||||
st.markdown(""" <link rel="stylesheet" type="text/css" href="http://localhost:4173/customize.css"> """,
|
||||
st.markdown(""" <link rel="stylesheet" type="text/css" href="https://git.wm-app.xyz/dev/streamlit/raw/branch/master/customize.css"> """,
|
||||
unsafe_allow_html=True)
|
||||
# 初始化历史记录和past key values
|
||||
if "history" not in st.session_state:
|
||||
|
Loading…
x
Reference in New Issue
Block a user