JerryLiJinyi commited on
Commit
57a9d59
1 Parent(s): 2003a9b

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -0
app.py CHANGED
@@ -46,6 +46,11 @@ demo = gr.Interface(
46
  outputs=[
47
  gr.Textbox(lines=1, label="output", info="Please wait patiently when proceeding it may take more than 2 minutes to generate since we are using CPUs for free."),
48
  gr.Textbox(lines=1, label="ratio", info="With the compression ratio of: ")
 
 
 
 
 
49
  ]
50
  )
51
 
 
46
  outputs=[
47
  gr.Textbox(lines=1, label="output", info="Please wait patiently when proceeding it may take more than 2 minutes to generate since we are using CPUs for free."),
48
  gr.Textbox(lines=1, label="ratio", info="With the compression ratio of: ")
49
+ ],
50
+ examples=[
51
+ ["Read the following poem and summarize it: O Captain! My Captain! our fearful trip is done; The ship has weather'd every rack, the prize we sought is won; The port is near, the bells I hear, the people all exulting, While follow eyes the steady keel, the vessel grim and daring.", "Selective Context", 0.5, 0],
52
+ ["Read the following poem and summarize it: O Captain! My Captain! our fearful trip is done; The ship has weather'd every rack, the prize we sought is won; The port is near, the bells I hear, the people all exulting, While follow eyes the steady keel, the vessel grim and daring.", "SCRL", 0, 16],
53
+ ["Read the following poem and summarize it: O Captain! My Captain! our fearful trip is done; The ship has weather'd every rack, the prize we sought is won; The port is near, the bells I hear, the people all exulting, While follow eyes the steady keel, the vessel grim and daring.", "KiS", 0, 256]
54
  ]
55
  )
56