GuXiaopeng commited on
Commit
8560cf7
·
verified ·
1 Parent(s): 037d155

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -107,7 +107,7 @@ is_active_session = st.session_state.get("is_running", False) or \
107
  if not is_active_session and global_lock.locked():
108
  st.markdown("<h3 style='text-align: center; color: #e6a23c;'>⏳ 系统忙碌 / System Busy</h3>", unsafe_allow_html=True)
109
  st.warning("🚨 有小伙伴正在写作中")
110
- st.info("💡 预计15-25分钟后可正常使用")
111
  st.stop()
112
  # =====================================================================
113
 
@@ -247,7 +247,7 @@ with tab_wizard:
247
 
248
  if st.button("🚀 启动智能向导生成", disabled=st.session_state.is_running, key="btn_wiz"):
249
  if not global_lock.acquire(blocking=False):
250
- st.warning("⏳ 有小伙伴在写作,预计15-25 分钟后可用。")
251
  else:
252
  global_lock.release()
253
  st.session_state.run_mode = "wizard"
@@ -284,7 +284,7 @@ with tab_clone:
284
  elif not uploaded_reference_clone:
285
  st.error("🚨 启动克隆模式必须上传范例论文!")
286
  elif not global_lock.acquire(blocking=False):
287
- st.warning("⏳ 有小伙伴在写作,预计15-25 分钟后可用。")
288
  else:
289
  global_lock.release()
290
  st.session_state.run_mode = "clone"
@@ -325,7 +325,7 @@ if st.session_state.start_pipeline or st.session_state.resume_pipeline:
325
  st.rerun()
326
 
327
  if not global_lock.acquire(blocking=False):
328
- st.warning("⏳ 有小伙伴在写作,预计15-25 分钟后可用。")
329
  st.session_state.start_pipeline = False
330
  st.session_state.resume_pipeline = False
331
  st.stop()
 
107
  if not is_active_session and global_lock.locked():
108
  st.markdown("<h3 style='text-align: center; color: #e6a23c;'>⏳ 系统忙碌 / System Busy</h3>", unsafe_allow_html=True)
109
  st.warning("🚨 有小伙伴正在写作中")
110
+ st.info("💡 预计35-45分钟后可正常使用")
111
  st.stop()
112
  # =====================================================================
113
 
 
247
 
248
  if st.button("🚀 启动智能向导生成", disabled=st.session_state.is_running, key="btn_wiz"):
249
  if not global_lock.acquire(blocking=False):
250
+ st.warning("⏳ 有小伙伴在写作,预计35-45分钟后可用。")
251
  else:
252
  global_lock.release()
253
  st.session_state.run_mode = "wizard"
 
284
  elif not uploaded_reference_clone:
285
  st.error("🚨 启动克隆模式必须上传范例论文!")
286
  elif not global_lock.acquire(blocking=False):
287
+ st.warning("⏳ 有小伙伴在写作,预计35-45分钟后可用。")
288
  else:
289
  global_lock.release()
290
  st.session_state.run_mode = "clone"
 
325
  st.rerun()
326
 
327
  if not global_lock.acquire(blocking=False):
328
+ st.warning("⏳ 有小伙伴在写作,预计35-45分钟后可用。")
329
  st.session_state.start_pipeline = False
330
  st.session_state.resume_pipeline = False
331
  st.stop()