# -*- encoding: utf-8 -*- # @Author: SWHL # @Contact: liekkaskono@163.com from pathlib import Path import streamlit as st if __name__ == '__main__': st.markdown("

Rapid Structure

", unsafe_allow_html=True) st.markdown("""

""", unsafe_allow_html=True) st.markdown('戳这里查看支持模型列表:[PaddleOCR Models](https://github.com/PaddlePaddle/PaddleOCR/blob/release/2.6/doc/doc_ch/models_list.md)') default_url = 'e.g. https://paddleocr.bj.bcebos.com/PP-OCRv3/chinese/ch_PP-OCRv3_rec_infer.tar' url = st.text_input('输入模型地址:', help=default_url) default_txt_path = 'e.g. https://raw.githubusercontent.com/PaddlePaddle/PaddleOCR/release/2.6/ppocr/utils/ppocr_keys_v1.txt' txt_url = st.text_input('输入txt地址(文本识别模型时,必选):', help=default_txt_path) save_dir = 'models' save_onnx_path = '' is_convert = st.button('Convert')