root
commited on
Commit
·
feb46ff
1
Parent(s):
d18ae45
add link
Browse files
app.py
CHANGED
|
@@ -219,8 +219,8 @@ def handle_targeted_recognition(file_path: str, prompt_choice: str) -> Tuple[str
|
|
| 219 |
# =========================
|
| 220 |
custom_css = """
|
| 221 |
/* 全局字体 */
|
| 222 |
-
body, .gradio-container
|
| 223 |
-
font-family: "Noto Sans SC", "Microsoft YaHei", "PingFang SC", sans-serif
|
| 224 |
}
|
| 225 |
/* ... (rest of the CSS is unchanged) ... */
|
| 226 |
.app-header { text-align: center; max-width: 900px; margin: 0 auto 8px !important; }
|
|
@@ -247,7 +247,7 @@ with gr.Blocks(head=GOOGLE_FONTS_URL, css=custom_css, theme=gr.themes.Soft()) as
|
|
| 247 |
logo_data_url = image_to_base64_data_url(LOGO_IMAGE_PATH) if os.path.exists(LOGO_IMAGE_PATH) else ""
|
| 248 |
gr.HTML(f"""<div class="app-header"><img src="{logo_data_url}" alt="App Logo" style="max-height:10%; width: auto; margin: 10px auto; display: block;"></div>""")
|
| 249 |
gr.HTML("""<div class="notice"><strong>Heads up:</strong> The Hugging Face demo can be slow at times. For a faster experience, please try <a href="https://aistudio.baidu.com/application/detail/98365" target="_blank" rel="noopener noreferrer">Baidu AI Studio</a> or <a href="https://modelscope.cn/studios/PaddlePaddle/PaddleOCR-VL_Online_Demo/summary" target="_blank" rel="noopener noreferrer">ModelScope</a>.</div>""")
|
| 250 |
-
gr.HTML("""<div class="quick-links"><a href="https://github.com/PaddlePaddle/PaddleOCR" target="_blank">GitHub</a> | <a href="https://
|
| 251 |
|
| 252 |
with gr.Tabs():
|
| 253 |
with gr.Tab("Document Parsing"):
|
|
|
|
| 219 |
# =========================
|
| 220 |
custom_css = """
|
| 221 |
/* 全局字体 */
|
| 222 |
+
body, .gradio-container {
|
| 223 |
+
font-family: "Noto Sans SC", "Microsoft YaHei", "PingFang SC", sans-serif;
|
| 224 |
}
|
| 225 |
/* ... (rest of the CSS is unchanged) ... */
|
| 226 |
.app-header { text-align: center; max-width: 900px; margin: 0 auto 8px !important; }
|
|
|
|
| 247 |
logo_data_url = image_to_base64_data_url(LOGO_IMAGE_PATH) if os.path.exists(LOGO_IMAGE_PATH) else ""
|
| 248 |
gr.HTML(f"""<div class="app-header"><img src="{logo_data_url}" alt="App Logo" style="max-height:10%; width: auto; margin: 10px auto; display: block;"></div>""")
|
| 249 |
gr.HTML("""<div class="notice"><strong>Heads up:</strong> The Hugging Face demo can be slow at times. For a faster experience, please try <a href="https://aistudio.baidu.com/application/detail/98365" target="_blank" rel="noopener noreferrer">Baidu AI Studio</a> or <a href="https://modelscope.cn/studios/PaddlePaddle/PaddleOCR-VL_Online_Demo/summary" target="_blank" rel="noopener noreferrer">ModelScope</a>.</div>""")
|
| 250 |
+
gr.HTML("""<div class="quick-links"><a href="https://github.com/PaddlePaddle/PaddleOCR" target="_blank">GitHub</a> | <a href="https://ernie.baidu.com/blog/publication/PaddleOCR-VL_Technical_Report.pdf" target="_blank">Technical Report</a> | <a href="https://huggingface.co/spaces/PaddlePaddle/PaddleOCR-VL_Online_Demo" target="_blank">Model</a></div>""")
|
| 251 |
|
| 252 |
with gr.Tabs():
|
| 253 |
with gr.Tab("Document Parsing"):
|