Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -57,11 +57,16 @@ The summary can be extracted either from an HTML page or plain text. You can fin
|
|
57 |
methods [here](https://github.com/miso-belica/sumy/blob/main/docs/summarizators.md).
|
58 |
"""
|
59 |
|
|
|
|
|
|
|
|
|
|
|
60 |
iface = gr.Interface(
|
61 |
summarize,
|
62 |
[
|
63 |
-
gr.inputs.Dropdown(
|
64 |
-
gr.inputs.
|
65 |
gr.inputs.Number(default=5),
|
66 |
gr.inputs.Radio(["URL", "text"], default="URL"),
|
67 |
gr.inputs.Textbox(5),
|
|
|
57 |
methods [here](https://github.com/miso-belica/sumy/blob/main/docs/summarizators.md).
|
58 |
"""
|
59 |
|
60 |
+
methods = ["LSA", "luhn", "edmundson", "text-rank", "lex-rank", "random", "reduction", "kl-sum"]
|
61 |
+
|
62 |
+
supported_languages = ["english", "french", "chinese", "czech", "german", "italian", "hebrew",
|
63 |
+
"Japanese", "portuguese", "slovak", "Spanish", "ukrainian", "greek"]
|
64 |
+
|
65 |
iface = gr.Interface(
|
66 |
summarize,
|
67 |
[
|
68 |
+
gr.inputs.Dropdown(methods),
|
69 |
+
gr.inputs.Dropdown(supported_languages),
|
70 |
gr.inputs.Number(default=5),
|
71 |
gr.inputs.Radio(["URL", "text"], default="URL"),
|
72 |
gr.inputs.Textbox(5),
|