Spaces:
Runtime error
Runtime error
edits to title and description
Browse files
app.py
CHANGED
@@ -43,7 +43,7 @@ def get_wiki(search_term):
|
|
43 |
# get_ocr()
|
44 |
# model = AutoModelForSeq2SeqLM.from_pretrained("sgugger/my-awesome-model")
|
45 |
|
46 |
-
out_sum_text = gr.Textbox(label='Summarized Text')
|
47 |
out_orig_test_len = gr.Number(label='Original Text Length')
|
48 |
out_sum_text_len = gr.Number(label='Summarized Text Length')
|
49 |
|
@@ -51,6 +51,7 @@ iface = gr.Interface(fn=get_wiki,
|
|
51 |
inputs=gr.Textbox(lines=2, placeholder="Wikipedia search term here...", label='Search Term'),
|
52 |
outputs=[out_sum_text,out_orig_test_len,out_sum_text_len],
|
53 |
title='Wikipedia Article Summary',
|
54 |
-
description='Enter a search term to get a
|
|
|
55 |
)
|
56 |
-
iface.launch()
|
|
|
43 |
# get_ocr()
|
44 |
# model = AutoModelForSeq2SeqLM.from_pretrained("sgugger/my-awesome-model")
|
45 |
|
46 |
+
out_sum_text = gr.Textbox(label='Summarized Text', lines=500)
|
47 |
out_orig_test_len = gr.Number(label='Original Text Length')
|
48 |
out_sum_text_len = gr.Number(label='Summarized Text Length')
|
49 |
|
|
|
51 |
inputs=gr.Textbox(lines=2, placeholder="Wikipedia search term here...", label='Search Term'),
|
52 |
outputs=[out_sum_text,out_orig_test_len,out_sum_text_len],
|
53 |
title='Wikipedia Article Summary',
|
54 |
+
description='Enter a search term to get a wikipedia article associated with it. Then we will summarize the article found. ',
|
55 |
+
sample_inputs='guardians of the galaxy'
|
56 |
)
|
57 |
+
iface.launch() # To create a public link, set `share=True` in `launch()`.
|