SWHL commited on
Commit
5239a3a
1 Parent(s): da6b8ea

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -45,10 +45,11 @@ if is_convert:
45
  st.error('识别模型对应字典不能为空')
46
  st.stop()
47
 
48
- save_onnx_path = converter(url, save_dir,
49
- txt_path=txt_url,
50
- is_del_raw=True)
51
- st.success('转换成功,点击Download下载!', icon="✅")
 
52
 
53
  if save_onnx_path:
54
  with open(save_onnx_path, 'rb') as file:
 
45
  st.error('识别模型对应字典不能为空')
46
  st.stop()
47
 
48
+ with st.spinner("正在转换,请稍等........"):
49
+ save_onnx_path = converter(url, save_dir,
50
+ txt_path=txt_url,
51
+ is_del_raw=True)
52
+ st.success('转换成功,点击Download下载!', icon="✅")
53
 
54
  if save_onnx_path:
55
  with open(save_onnx_path, 'rb') as file: