kz919 commited on
Commit
8bff249
1 Parent(s): f9b222e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -82,6 +82,7 @@ def clean_response(response):
82
  return response
83
 
84
  def stream_response(response):
 
85
  for word in response.split(" "):
86
  yield word + " "
87
  time.sleep(0.02)
@@ -90,8 +91,9 @@ def stream_response(response):
90
  if st.session_state.messages[-1]["role"] != "assistant":
91
  with st.chat_message("assistant"):
92
  with st.spinner("Thinking..."):
93
- response = generate_response(prompt)
94
- response = clean_response(response)
 
95
  st.write_stream(stream_response(response))
96
 
97
  message = {"role": "assistant", "content": response}
 
82
  return response
83
 
84
  def stream_response(response):
85
+ response = "We are undergoing speed upgrade, will be back in a moment! Stay tuned!"
86
  for word in response.split(" "):
87
  yield word + " "
88
  time.sleep(0.02)
 
91
  if st.session_state.messages[-1]["role"] != "assistant":
92
  with st.chat_message("assistant"):
93
  with st.spinner("Thinking..."):
94
+ # response = generate_response(prompt)
95
+ # response = clean_response(response)
96
+ response = None
97
  st.write_stream(stream_response(response))
98
 
99
  message = {"role": "assistant", "content": response}