Spaces:
Sleeping
Sleeping
Update src/streamlit_app.py
Browse files- src/streamlit_app.py +2 -2
src/streamlit_app.py
CHANGED
@@ -38,6 +38,7 @@ st.set_page_config(
|
|
38 |
initial_sidebar_state="collapsed",
|
39 |
layout="centered",
|
40 |
)
|
|
|
41 |
|
42 |
if not check_password():
|
43 |
st.stop()
|
@@ -53,7 +54,6 @@ wx_client = setup_watsonxai_client(
|
|
53 |
|
54 |
# ----- ----- MAIN APP
|
55 |
def main():
|
56 |
-
initialize_session_state()
|
57 |
st.subheader(f"{bot_name} {bot_icon}")
|
58 |
|
59 |
if display_chat_history:
|
@@ -84,7 +84,7 @@ def main():
|
|
84 |
params=params,
|
85 |
model_id=model_id,
|
86 |
)
|
87 |
-
|
88 |
text_output = generate_response(stream_generator, stream=stream_outputs)
|
89 |
|
90 |
# Stream the response with typewriter effect
|
|
|
38 |
initial_sidebar_state="collapsed",
|
39 |
layout="centered",
|
40 |
)
|
41 |
+
initialize_session_state()
|
42 |
|
43 |
if not check_password():
|
44 |
st.stop()
|
|
|
54 |
|
55 |
# ----- ----- MAIN APP
|
56 |
def main():
|
|
|
57 |
st.subheader(f"{bot_name} {bot_icon}")
|
58 |
|
59 |
if display_chat_history:
|
|
|
84 |
params=params,
|
85 |
model_id=model_id,
|
86 |
)
|
87 |
+
|
88 |
text_output = generate_response(stream_generator, stream=stream_outputs)
|
89 |
|
90 |
# Stream the response with typewriter effect
|