hideosnes commited on
Commit
57d5ea4
·
verified ·
1 Parent(s): 8f28339

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -144,14 +144,14 @@ with gr.Blocks(theme=theme) as demo:
144
  text = gr.Textbox(label="Paste text from clipboard.", lines=10)
145
 
146
  with gr.Row(): # for inline horizontal layout
147
- style = gr.Dropdown(["Precise", "Sloppy", "Keywords"], label="Style")
148
  length = gr.Dropdown(["Short", "Middle", "Long"], label="Length")
149
- token_info = gr.Text("1024 tokens ~ 750–800 words")
150
  btn = gr.Button("Transform")
151
 
152
  with gr.Column(): #right column
153
  summary = gr.Textbox(label="Summary")
154
- keywords = gr.Textbox(label="Important Keywords")
155
  original_len = gr.Number(label="Original Text Length")
156
  summary_len = gr.Number(label="Summary Length")
157
  reduction = gr.Textbox(label="Summary Efficiency")
@@ -164,4 +164,3 @@ with gr.Blocks(theme=theme) as demo:
164
  )
165
 
166
  demo.launch(share=True)
167
-
 
144
  text = gr.Textbox(label="Paste text from clipboard.", lines=10)
145
 
146
  with gr.Row(): # for inline horizontal layout
147
+ style = gr.Dropdown(["Precise", "Sloppy", "Keywords"], label="Style (experimental")
148
  length = gr.Dropdown(["Short", "Middle", "Long"], label="Length")
149
+ token_info = gr.Text(label="Max. Tokens", value="1024 tokens ~ 750–800 words")
150
  btn = gr.Button("Transform")
151
 
152
  with gr.Column(): #right column
153
  summary = gr.Textbox(label="Summary")
154
+ # keywords = gr.Textbox(label="Important Keywords")
155
  original_len = gr.Number(label="Original Text Length")
156
  summary_len = gr.Number(label="Summary Length")
157
  reduction = gr.Textbox(label="Summary Efficiency")
 
164
  )
165
 
166
  demo.launch(share=True)