linjieccc commited on
Commit
f131020
1 Parent(s): d025133

Update header.html

Browse files
Files changed (2) hide show
  1. app.py +3 -5
  2. header.html +7 -2
app.py CHANGED
@@ -363,10 +363,6 @@ gradio-app h2, .gradio-app h2 {
363
 
364
  with gr.Blocks(css=CSS) as demo:
365
  gr.HTML(read_content("header.html"))
366
- gr.Markdown(
367
- f" 📜 DocPrompt is a Document Prompt Engine uses ERNIE-Layout as the backbone model.\n"
368
- f" The engine is powered by Baidu Wenxin Document Intelligence Team and is ability for multilingual documents information extraction and question ansering. 🔖\n"
369
- )
370
 
371
  document = gr.Variable()
372
  example_prompt = gr.Textbox(visible=False)
@@ -498,4 +494,6 @@ with gr.Blocks(css=CSS) as demo:
498
 
499
 
500
  if __name__ == "__main__":
501
- demo.launch(enable_queue=False)
 
 
 
363
 
364
  with gr.Blocks(css=CSS) as demo:
365
  gr.HTML(read_content("header.html"))
 
 
 
 
366
 
367
  document = gr.Variable()
368
  example_prompt = gr.Textbox(visible=False)
 
494
 
495
 
496
  if __name__ == "__main__":
497
+ # demo.launch(enable_queue=False)
498
+ demo.launch(enable_queue=True, server_name="10.21.226.184", server_port=8072, share=False)
499
+
header.html CHANGED
@@ -21,6 +21,11 @@
21
  justify-content: center;
22
  ">
23
  <a href="https://github.com/PaddlePaddle/PaddleNLP"><h1 style="font-weight: 900; align-items: center; margin-bottom: 7px;">
24
- ERNIE-Layout DocPrompt Engine
25
  </h1></a>
26
- </div>
 
 
 
 
 
 
21
  justify-content: center;
22
  ">
23
  <a href="https://github.com/PaddlePaddle/PaddleNLP"><h1 style="font-weight: 900; align-items: center; margin-bottom: 7px;">
24
+ ERNIE-Layout DocPrompt Engine 🧾
25
  </h1></a>
26
+ </div>
27
+ <p style="margin-bottom: 10px; font-size: 94%">
28
+ DocPrompt🔖 is a Document Prompt Engine uses ERNIE-Layout as the backbone model. The engine is powered by BAIDU WenXin Document Intelligence Team and is ability for multilingual documents information extraction and question ansering.
29
+ </p>
30
+ <a href="https://github.com/PaddlePaddle/PaddleNLP"><img src="https://user-images.githubusercontent.com/40840292/195516769-c4452d7c-3f9e-446f-8f9d-882b99052a5b.png" alt="star Paddlehub" width="100%"></a>
31
+ </div>