Abhishek2775 commited on
Commit
cd5c379
·
verified ·
1 Parent(s): 5779182

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -7,6 +7,10 @@ client = InferenceClient("HuggingFaceH4/zephyr-7b-beta")
7
  # Streamlit app title
8
  st.title("Chat with Zephyr-7b-beta")
9
 
 
 
 
 
10
  # Sidebar for system message and parameters
11
  with st.sidebar:
12
  st.header("Settings")
@@ -37,10 +41,6 @@ with st.sidebar:
37
  help="Controls diversity of the model's responses.",
38
  )
39
 
40
- # Initialize chat history in session state
41
- if "chat_history" not in st.session_state:
42
- st.session_state.chat_history = []
43
-
44
  # Display chat history
45
  for user_message, bot_response in st.session_state.chat_history:
46
  with st.chat_message("user"):
 
7
  # Streamlit app title
8
  st.title("Chat with Zephyr-7b-beta")
9
 
10
+ # Initialize chat history in session state
11
+ if "chat_history" not in st.session_state:
12
+ st.session_state.chat_history = []
13
+
14
  # Sidebar for system message and parameters
15
  with st.sidebar:
16
  st.header("Settings")
 
41
  help="Controls diversity of the model's responses.",
42
  )
43
 
 
 
 
 
44
  # Display chat history
45
  for user_message, bot_response in st.session_state.chat_history:
46
  with st.chat_message("user"):