Spaces:
Runtime error
Runtime error
Changing to paste in text for input since the wikipedia api doesn't work.
Browse files
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="
|
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()`.
|