g3casey commited on
Commit
bd62b5b
1 Parent(s): 20b6df0

Changing to paste in text for input since the wikipedia api doesn't work.

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -50,10 +50,9 @@ out_orig_test_len = gr.Number(label='Original Text Length')
50
  out_sum_text_len = gr.Number(label='Summarized Text Length')
51
 
52
  iface = gr.Interface(fn=get_wiki,
53
- inputs=gr.Textbox(lines=50, placeholder="Wikipedia search term here...", label='Search Term'),
54
  outputs=[out_sum_text, out_orig_test_len, out_sum_text_len],
55
  title='Article Summary',
56
- description='Paste in an article and it will be summarized',
57
- sample_inputs='guardians of the galaxy'
58
  )
59
  iface.launch() # To create a public link, set `share=True` in `launch()`.
 
50
  out_sum_text_len = gr.Number(label='Summarized Text Length')
51
 
52
  iface = gr.Interface(fn=get_wiki,
53
+ inputs=gr.Textbox(lines=50, placeholder="Paste article here....", label='Article to Summarize'),
54
  outputs=[out_sum_text, out_orig_test_len, out_sum_text_len],
55
  title='Article Summary',
56
+ description='Paste in an article and it will be summarized.'
 
57
  )
58
  iface.launch() # To create a public link, set `share=True` in `launch()`.