root
commited on
Commit
·
8783540
1
Parent(s):
bccb493
add headup
Browse files
app.py
CHANGED
|
@@ -275,11 +275,11 @@ body, .gradio-container { font-family: "Noto Sans SC", "Microsoft YaHei", "PingF
|
|
| 275 |
"""
|
| 276 |
|
| 277 |
with gr.Blocks(head=GOOGLE_FONTS_URL, css=custom_css, theme=gr.themes.Soft()) as demo:
|
| 278 |
-
# 顶部 Logo
|
| 279 |
logo_data_url = image_to_base64_data_url(LOGO_IMAGE_PATH) if os.path.exists(LOGO_IMAGE_PATH) else ""
|
| 280 |
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>""")
|
| 281 |
-
gr.HTML("""<div class="
|
| 282 |
-
|
|
|
|
| 283 |
with gr.Tabs():
|
| 284 |
# ===================== Document Parsing =====================
|
| 285 |
with gr.Tab("Document Parsing"):
|
|
@@ -419,4 +419,4 @@ with gr.Blocks(head=GOOGLE_FONTS_URL, css=custom_css, theme=gr.themes.Soft()) as
|
|
| 419 |
|
| 420 |
if __name__ == "__main__":
|
| 421 |
port = int(os.getenv("PORT", "7860"))
|
| 422 |
-
demo.queue(max_size=64).launch(server_name="0.0.0.0", server_port=port, share=False)
|
|
|
|
| 275 |
"""
|
| 276 |
|
| 277 |
with gr.Blocks(head=GOOGLE_FONTS_URL, css=custom_css, theme=gr.themes.Soft()) as demo:
|
|
|
|
| 278 |
logo_data_url = image_to_base64_data_url(LOGO_IMAGE_PATH) if os.path.exists(LOGO_IMAGE_PATH) else ""
|
| 279 |
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>""")
|
| 280 |
+
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>""")
|
| 281 |
+
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/PaddlePaddle/PaddleOCR-VL" target="_blank">Model</a></div>""")
|
| 282 |
+
|
| 283 |
with gr.Tabs():
|
| 284 |
# ===================== Document Parsing =====================
|
| 285 |
with gr.Tab("Document Parsing"):
|
|
|
|
| 419 |
|
| 420 |
if __name__ == "__main__":
|
| 421 |
port = int(os.getenv("PORT", "7860"))
|
| 422 |
+
demo.queue(max_size=64).launch(server_name="0.0.0.0", server_port=port, share=False)
|