Spaces:
Runtime error
Runtime error
change to get_wiki of summarize
Browse files
app.py
CHANGED
@@ -43,13 +43,12 @@ def get_wiki(search_term):
|
|
43 |
# get_ocr()
|
44 |
# model = AutoModelForSeq2SeqLM.from_pretrained("sgugger/my-awesome-model")
|
45 |
|
46 |
-
|
47 |
out_sum_text = gr.Textbox(label='Summarized Text')
|
48 |
out_orig_test_len = gr.Number(label='Original Text Length')
|
49 |
out_sum_text_len = gr.Number(label='Summarized Text Length')
|
50 |
|
51 |
iface = gr.Interface(fn=get_wiki,
|
52 |
-
inputs=gr.Textbox(lines=2, placeholder="Wikipedia search term here..."),
|
53 |
outputs=[out_sum_text,out_orig_test_len,out_sum_text_len]
|
54 |
)
|
55 |
iface.launch()
|
|
|
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 |
|
50 |
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 |
)
|
54 |
iface.launch()
|