nkcong206 commited on
Commit
9dad315
1 Parent(s): 1905f7d
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -373,11 +373,10 @@ for message in st.session_state.chat_history:
373
  with st.chat_message(message["role"]):
374
  st.write(message["content"])
375
 
376
- prompt = st.chat_input("Bạn muốn hỏi gì?")
377
 
378
  if not st.session_state.processing:
379
  if st.session_state.gemini_api:
380
- if prompt:
381
  st.session_state.chat_history.append({"role": "user", "content": prompt})
382
 
383
  with st.chat_message("user"):
 
373
  with st.chat_message(message["role"]):
374
  st.write(message["content"])
375
 
 
376
 
377
  if not st.session_state.processing:
378
  if st.session_state.gemini_api:
379
+ if prompt := st.chat_input("Bạn muốn hỏi gì?"):
380
  st.session_state.chat_history.append({"role": "user", "content": prompt})
381
 
382
  with st.chat_message("user"):