Spaces:
Runtime error
Runtime error
linjieccc
commited on
Commit
•
f5fba0c
1
Parent(s):
c587bf9
Update markdown
Browse files- app.py +8 -2
- header.html +3 -3
app.py
CHANGED
@@ -371,6 +371,12 @@ gradio-app h2, .gradio-app h2 {
|
|
371 |
|
372 |
with gr.Blocks(css=CSS) as demo:
|
373 |
gr.HTML(read_content("header.html"))
|
|
|
|
|
|
|
|
|
|
|
|
|
374 |
|
375 |
document = gr.Variable()
|
376 |
example_prompt = gr.Textbox(visible=False)
|
@@ -411,7 +417,7 @@ with gr.Blocks(css=CSS) as demo:
|
|
411 |
with gr.Column() as col:
|
412 |
gr.Markdown("## 2. Make a request")
|
413 |
prompt = gr.Textbox(
|
414 |
-
label="Prompt (No restrictions on the setting of prompt.)",
|
415 |
placeholder="e.g. What is the total actual and/or obligated expenses of ECG Center?",
|
416 |
lines=1,
|
417 |
max_lines=1,
|
@@ -419,7 +425,7 @@ with gr.Blocks(css=CSS) as demo:
|
|
419 |
ocr_lang = gr.Radio(
|
420 |
choices=["ch", "en"],
|
421 |
value="en",
|
422 |
-
label="Select OCR Language
|
423 |
)
|
424 |
|
425 |
with gr.Row():
|
|
|
371 |
|
372 |
with gr.Blocks(css=CSS) as demo:
|
373 |
gr.HTML(read_content("header.html"))
|
374 |
+
gr.Markdown(
|
375 |
+
"DocPrompt🔖 is a Document Prompt Engine using ERNIE-Layout as the backbone model."
|
376 |
+
"The engine is powered by BAIDU WenXin Document Intelligence Team "
|
377 |
+
"and has the ability for multilingual documents information extraction and question ansering. "
|
378 |
+
"For more details, visit the [Github](https://github.com/PaddlePaddle/PaddleNLP/tree/develop/model_zoo/ernie-layout)."
|
379 |
+
)
|
380 |
|
381 |
document = gr.Variable()
|
382 |
example_prompt = gr.Textbox(visible=False)
|
|
|
417 |
with gr.Column() as col:
|
418 |
gr.Markdown("## 2. Make a request")
|
419 |
prompt = gr.Textbox(
|
420 |
+
label="Prompt (No restrictions on the setting of prompt. You can type any prompt.)",
|
421 |
placeholder="e.g. What is the total actual and/or obligated expenses of ECG Center?",
|
422 |
lines=1,
|
423 |
max_lines=1,
|
|
|
425 |
ocr_lang = gr.Radio(
|
426 |
choices=["ch", "en"],
|
427 |
value="en",
|
428 |
+
label="Select OCR Language (Please choose ch for Chinese images.)",
|
429 |
)
|
430 |
|
431 |
with gr.Row():
|
header.html
CHANGED
@@ -24,8 +24,8 @@
|
|
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 using [ERNIE-Layout](https://github.com/PaddlePaddle/PaddleNLP/tree/develop/model_zoo/ernie-layout) as the backbone model. The engine is powered by BAIDU WenXin Document Intelligence Team and has the 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"
|
31 |
-
</div>
|
|
|
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 using [ERNIE-Layout](https://github.com/PaddlePaddle/PaddleNLP/tree/develop/model_zoo/ernie-layout) as the backbone model. The engine is powered by BAIDU WenXin Document Intelligence Team and has the 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" width="100%"></a>
|
31 |
+
</div> -->
|