Spaces:
Sleeping
Sleeping
add-task-descriptions (#16)
Browse files- Test PR (62a6dc0e75817f4906955253e048163c293e0c02)
- Remove dummy file for testing. (a0f57ef71f5ad465450ec46237485296da72bd21)
- Add descriptions ctrlsum and rsp. (b176d2cb31e115026268aee4d0b9c455bf6063b9)
- Add DE description. (358643b354078b5e103fdc8dedb39adaf93d281a)
- Edit ctrlsum description. (e7a780d7c7e78ca0f0df737627790b16b7b2ae3b)
- Keep task description simple accurate. (fdaed1b464f4af7c977dc28a56709ab9276f05c7)
Co-authored-by: Javon Teo Tze Kai <[email protected]>
- app.py +3 -1
- description.py +9 -1
app.py
CHANGED
@@ -28,7 +28,7 @@ with gr.Blocks(css="#htext span {white-space: pre-line}") as demo:
|
|
28 |
ctrlsum_file = gr.File(label="Input File")
|
29 |
ctrlsum_str = gr.TextArea(label="Input String", max_lines=5)
|
30 |
with gr.Column():
|
31 |
-
gr.Markdown("* Length 0 will exert no control over length.")
|
32 |
# ctrlsum_file_beams = gr.Number(label="Number of beams for beam search", value=1, precision=0)
|
33 |
# ctrlsum_file_sequences = gr.Number(label="Number of generated summaries", value=1, precision=0)
|
34 |
ctrlsum_file_length = gr.Slider(0,300,step=50, label="Length")
|
@@ -60,6 +60,7 @@ with gr.Blocks(css="#htext span {white-space: pre-line}") as demo:
|
|
60 |
outputs=[ctrlsum_url, ctrlsum_file_length, ctrlsum_file_keywords, ctrlsum_file])
|
61 |
# Reference String Parsing
|
62 |
with gr.TabItem("Reference String Parsing"):
|
|
|
63 |
with gr.Box():
|
64 |
gr.Markdown(rsp_str_md)
|
65 |
with gr.Row():
|
@@ -113,6 +114,7 @@ with gr.Blocks(css="#htext span {white-space: pre-line}") as demo:
|
|
113 |
|
114 |
# Dataset Extraction
|
115 |
with gr.TabItem("Dataset Mentions Extraction"):
|
|
|
116 |
with gr.Box():
|
117 |
gr.Markdown(de_str_md)
|
118 |
with gr.Row():
|
|
|
28 |
ctrlsum_file = gr.File(label="Input File")
|
29 |
ctrlsum_str = gr.TextArea(label="Input String", max_lines=5)
|
30 |
with gr.Column():
|
31 |
+
gr.Markdown("* Set the length of text used for summarization. Length 0 will exert no control over length.")
|
32 |
# ctrlsum_file_beams = gr.Number(label="Number of beams for beam search", value=1, precision=0)
|
33 |
# ctrlsum_file_sequences = gr.Number(label="Number of generated summaries", value=1, precision=0)
|
34 |
ctrlsum_file_length = gr.Slider(0,300,step=50, label="Length")
|
|
|
60 |
outputs=[ctrlsum_url, ctrlsum_file_length, ctrlsum_file_keywords, ctrlsum_file])
|
61 |
# Reference String Parsing
|
62 |
with gr.TabItem("Reference String Parsing"):
|
63 |
+
gr.Markdown(rsp_title_md)
|
64 |
with gr.Box():
|
65 |
gr.Markdown(rsp_str_md)
|
66 |
with gr.Row():
|
|
|
114 |
|
115 |
# Dataset Extraction
|
116 |
with gr.TabItem("Dataset Mentions Extraction"):
|
117 |
+
gr.Markdown(de_title_md)
|
118 |
with gr.Box():
|
119 |
gr.Markdown(de_str_md)
|
120 |
with gr.Row():
|
description.py
CHANGED
@@ -1,4 +1,8 @@
|
|
1 |
# Reference string parsing Markdown
|
|
|
|
|
|
|
|
|
2 |
rsp_str_md = '''
|
3 |
To **test on strings**, simply input one or more strings.
|
4 |
'''
|
@@ -42,6 +46,8 @@ To **test on strings**, simply input a string.
|
|
42 |
ctrlsum_file_md = '''
|
43 |
This is the demo for **CocoSciSum**.
|
44 |
|
|
|
|
|
45 |
To **test on a file**, the input can be:
|
46 |
|
47 |
- A txt file which contains the content to be summarized.
|
@@ -52,7 +58,9 @@ To **test on a file**, the input can be:
|
|
52 |
|
53 |
'''
|
54 |
|
55 |
-
|
|
|
|
|
56 |
|
57 |
de_str_md = '''
|
58 |
To **test on strings**, please input your sentences or paragraphs.
|
|
|
1 |
# Reference string parsing Markdown
|
2 |
+
rsp_title_md = '''
|
3 |
+
## Reference String Parsing parses a citation string, extracting information such as the title, authors, and publication date.
|
4 |
+
'''
|
5 |
+
|
6 |
rsp_str_md = '''
|
7 |
To **test on strings**, simply input one or more strings.
|
8 |
'''
|
|
|
46 |
ctrlsum_file_md = '''
|
47 |
This is the demo for **CocoSciSum**.
|
48 |
|
49 |
+
## Controlled Summarization uses FLAN-T5 to generate user-customised summaries from your input file or URL link.
|
50 |
+
|
51 |
To **test on a file**, the input can be:
|
52 |
|
53 |
- A txt file which contains the content to be summarized.
|
|
|
58 |
|
59 |
'''
|
60 |
|
61 |
+
de_title_md = '''
|
62 |
+
## Dataset Extraction detects dataset mentions from the input text.
|
63 |
+
'''
|
64 |
|
65 |
de_str_md = '''
|
66 |
To **test on strings**, please input your sentences or paragraphs.
|