AlainDeLong commited on
Commit
acda9d8
·
1 Parent(s): 3c61975

Update app

Browse files
Files changed (1) hide show
  1. src/streamlit_app.py +1 -2
src/streamlit_app.py CHANGED
@@ -126,11 +126,10 @@ if st.button("Dịch sang Tiếng Việt (Translate)"):
126
  if not input_text.strip():
127
  st.warning("⚠️ Vui lòng nhập nội dung cần dịch!")
128
  else:
129
- # Hiển thị spinner trong khi model chạy
130
  # Display spinner while model is running
131
  with st.spinner("Wait a second... AI is thinking 🧠"):
132
  try:
133
- # Đo thời gian inference
134
  start_time = time.time()
135
 
136
  # --- Call translate function ---
 
126
  if not input_text.strip():
127
  st.warning("⚠️ Vui lòng nhập nội dung cần dịch!")
128
  else:
 
129
  # Display spinner while model is running
130
  with st.spinner("Wait a second... AI is thinking 🧠"):
131
  try:
132
+ # Measure inference time
133
  start_time = time.time()
134
 
135
  # --- Call translate function ---