JavonTeo commited on
Commit
b176d2c
1 Parent(s): a0f57ef

Add descriptions ctrlsum and rsp.

Browse files
Files changed (2) hide show
  1. app.py +2 -1
  2. description.py +6 -0
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")
@@ -61,6 +61,7 @@ with gr.Blocks(css="#htext span {white-space: pre-line}") as demo:
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():
66
  with gr.Column():
 
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")
 
61
  # Reference String Parsing
62
  with gr.TabItem("Reference String Parsing"):
63
  with gr.Box():
64
+ gr.Markdown(rsp_title_md)
65
  gr.Markdown(rsp_str_md)
66
  with gr.Row():
67
  with gr.Column():
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.
 
1
  # Reference string parsing Markdown
2
+ rsp_title_md = '''
3
+ ## Our Reference String Parsing tool extracts specific pieces of information from a structured citation string, 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
+ Our Controlled Summarization tool uses advanced language models to extract key insights from your content, and condense lengthy documents and PDFs into clear, information-rich summaries.
50
+
51
  To **test on a file**, the input can be:
52
 
53
  - A txt file which contains the content to be summarized.