Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -110,7 +110,7 @@ def display_chat_history():
|
|
110 |
|
111 |
def main():
|
112 |
st.set_page_config(
|
113 |
-
page_title="
|
114 |
page_icon="🤖",
|
115 |
layout="wide"
|
116 |
)
|
@@ -122,8 +122,8 @@ def main():
|
|
122 |
model, tokenizer = load_model()
|
123 |
|
124 |
# Chat interface
|
125 |
-
st.title("
|
126 |
-
st.markdown("Xin chào! Tôi là trợ lý
|
127 |
|
128 |
# Chat history container
|
129 |
chat_container = st.container()
|
@@ -158,7 +158,6 @@ def main():
|
|
158 |
bot_response = generate_response(prompt, model, tokenizer)
|
159 |
|
160 |
# Add bot response
|
161 |
-
time.sleep(0.5) # Brief delay for natural feeling
|
162 |
st.session_state.messages.append({"role": "assistant", "content": bot_response})
|
163 |
st.session_state.thinking = False
|
164 |
|
|
|
110 |
|
111 |
def main():
|
112 |
st.set_page_config(
|
113 |
+
page_title="IOGPT",
|
114 |
page_icon="🤖",
|
115 |
layout="wide"
|
116 |
)
|
|
|
122 |
model, tokenizer = load_model()
|
123 |
|
124 |
# Chat interface
|
125 |
+
st.title("IOGPT 🤖")
|
126 |
+
st.markdown("Xin chào! Tôi là trợ lý IOGPT. Hãy hỏi tôi bất cứ điều gì!")
|
127 |
|
128 |
# Chat history container
|
129 |
chat_container = st.container()
|
|
|
158 |
bot_response = generate_response(prompt, model, tokenizer)
|
159 |
|
160 |
# Add bot response
|
|
|
161 |
st.session_state.messages.append({"role": "assistant", "content": bot_response})
|
162 |
st.session_state.thinking = False
|
163 |
|