Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -45,10 +45,11 @@ if is_convert:
|
|
| 45 |
st.error('识别模型对应字典不能为空')
|
| 46 |
st.stop()
|
| 47 |
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
|
|
|
|
| 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:
|