zjrwtx commited on
Commit
2d37fd3
·
1 Parent(s): 03220bb

fix warnning

Browse files
Files changed (1) hide show
  1. owl/webapp_zh.py +2 -2
owl/webapp_zh.py CHANGED
@@ -1171,8 +1171,8 @@ def main():
1171
  STOP_LOG_THREAD.set()
1172
  STOP_REQUESTED.set()
1173
  logging.info("应用程序关闭,停止日志线程")
1174
-
1175
- app.launch(share=False,enable_queue=True,server_name="127.0.0.1",server_port=7860)
1176
  except Exception as e:
1177
  logging.error(f"启动应用程序时发生错误: {str(e)}")
1178
  print(f"启动应用程序时发生错误: {str(e)}")
 
1171
  STOP_LOG_THREAD.set()
1172
  STOP_REQUESTED.set()
1173
  logging.info("应用程序关闭,停止日志线程")
1174
+ app.queue()
1175
+ app.launch(share=False,server_name="127.0.0.1",server_port=7860)
1176
  except Exception as e:
1177
  logging.error(f"启动应用程序时发生错误: {str(e)}")
1178
  print(f"启动应用程序时发生错误: {str(e)}")