GuXiaopeng commited on
Commit
f0f7985
·
verified ·
1 Parent(s): beae89e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -215,7 +215,7 @@ topic = st.text_input(ui["topic_label"], value="Generative Artificial Intelligen
215
  keywords = st.text_input(ui["keywords_label"], value="Ubiquitous computing; Context awareness; Deep learning; Personalized educational; Educational technologies; HCI; Recommendation system; LLMs; Generative AI; ChatGPT; Prompting engineering; Few-shot prompting", disabled=st.session_state.is_running)
216
  words = st.number_input(ui["words_label"], min_value=12000, max_value=25000, value=20000, step=1000, disabled=st.session_state.is_running)
217
 
218
- tab_wizard, tab_clone = st.tabs(["✨ 实证研究(Empirical Research)", "🧬 范文复刻 (Template Imitate)"])
219
 
220
  with tab_wizard:
221
  st.markdown("### 🛠️ 研究资料配置")
@@ -225,7 +225,7 @@ with tab_wizard:
225
 
226
  if st.button("🚀 启动智能向导生成", disabled=st.session_state.is_running, key="btn_wiz"):
227
  if not global_lock.acquire(blocking=False):
228
- st.warning("⏳ 有小伙伴正在创作,您在15-20 分钟后就能正常使用啦")
229
  else:
230
  global_lock.release()
231
  st.session_state.run_mode = "wizard"
@@ -262,7 +262,7 @@ with tab_clone:
262
  elif not uploaded_reference_clone:
263
  st.error("🚨 启动克隆模式必须上传范例论文!")
264
  elif not global_lock.acquire(blocking=False):
265
- st.warning("⏳ 有小伙伴正在创作,您在15-20 分钟后就能正常使用啦")
266
  else:
267
  global_lock.release()
268
  st.session_state.run_mode = "clone"
@@ -297,7 +297,7 @@ if st.session_state.start_pipeline or st.session_state.resume_pipeline:
297
  try: global_lock.release()
298
  except: pass
299
  st.warning("⚠️ 检测到您的浏览器页面发生了刷新或网络抖动。为保护数据,当前生成已暂停并自动保存了进度快照。")
300
- if st.button("🚀 立即恢复断点续传 (Resume Progress)"):
301
  st.session_state.is_running = False
302
  st.session_state.start_pipeline = False
303
  st.session_state.resume_pipeline = True
@@ -305,7 +305,7 @@ if st.session_state.start_pipeline or st.session_state.resume_pipeline:
305
  st.stop()
306
 
307
  if not global_lock.acquire(blocking=False):
308
- st.warning("⏳ 有小伙伴正在创作,您在15-20 分钟后就能正常使用啦")
309
  st.session_state.start_pipeline = False
310
  st.session_state.resume_pipeline = False
311
  st.stop()
 
215
  keywords = st.text_input(ui["keywords_label"], value="Ubiquitous computing; Context awareness; Deep learning; Personalized educational; Educational technologies; HCI; Recommendation system; LLMs; Generative AI; ChatGPT; Prompting engineering; Few-shot prompting", disabled=st.session_state.is_running)
216
  words = st.number_input(ui["words_label"], min_value=12000, max_value=25000, value=20000, step=1000, disabled=st.session_state.is_running)
217
 
218
+ tab_wizard, tab_clone = st.tabs(["✨ 实证研究(Empirical Study)", "🧬 范文复刻 (Sample Imitate)"])
219
 
220
  with tab_wizard:
221
  st.markdown("### 🛠️ 研究资料配置")
 
225
 
226
  if st.button("🚀 启动智能向导生成", disabled=st.session_state.is_running, key="btn_wiz"):
227
  if not global_lock.acquire(blocking=False):
228
+ st.warning("⏳ 有小伙伴正在创作,您在15-20 分钟后可正常使用。")
229
  else:
230
  global_lock.release()
231
  st.session_state.run_mode = "wizard"
 
262
  elif not uploaded_reference_clone:
263
  st.error("🚨 启动克隆模式必须上传范例论文!")
264
  elif not global_lock.acquire(blocking=False):
265
+ st.warning("⏳ 有小伙伴正在创作,您在15-20 分钟后可正常使用。")
266
  else:
267
  global_lock.release()
268
  st.session_state.run_mode = "clone"
 
297
  try: global_lock.release()
298
  except: pass
299
  st.warning("⚠️ 检测到您的浏览器页面发生了刷新或网络抖动。为保护数据,当前生成已暂停并自动保存了进度快照。")
300
+ if st.button("🚀 恢复断点续传 (Resume Progress)"):
301
  st.session_state.is_running = False
302
  st.session_state.start_pipeline = False
303
  st.session_state.resume_pipeline = True
 
305
  st.stop()
306
 
307
  if not global_lock.acquire(blocking=False):
308
+ st.warning("⏳ 有小伙伴正在创作,您在15-20 分钟后可正常使用。")
309
  st.session_state.start_pipeline = False
310
  st.session_state.resume_pipeline = False
311
  st.stop()