hideosnes commited on
Commit
258987a
·
verified ·
1 Parent(s): 6587e7e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -126,7 +126,7 @@ def summarize(file, text, style, length):
126
  ax.bar(
127
  ["Original", "Summary"],
128
  [original_len, summary_len],
129
- color=["coral", "purple"]
130
  )
131
  ax.set_ylabel("Word Count")
132
 
@@ -148,7 +148,7 @@ with gr.Blocks(theme=theme) as demo:
148
 
149
  with gr.Column(): #right column
150
  summary = gr.Textbox(label="Summary")
151
- keywords = gr.Textbox(label="Important Keywords (experimental)")
152
  original_len = gr.Number(label="Original Text Length")
153
  summary_len = gr.Number(label="Summary Length")
154
  reduction = gr.Textbox(label="Summary Efficiency")
 
126
  ax.bar(
127
  ["Original", "Summary"],
128
  [original_len, summary_len],
129
+ color=["indigo", "sky"]
130
  )
131
  ax.set_ylabel("Word Count")
132
 
 
148
 
149
  with gr.Column(): #right column
150
  summary = gr.Textbox(label="Summary")
151
+ keywords = gr.Textbox(label="Keywords (experimental)")
152
  original_len = gr.Number(label="Original Text Length")
153
  summary_len = gr.Number(label="Summary Length")
154
  reduction = gr.Textbox(label="Summary Efficiency")