issam9 commited on
Commit
8912724
1 Parent(s): 7f09a76

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -1
app.py CHANGED
@@ -49,6 +49,13 @@ def summarize(method, language, sentence_count, input_type, input_):
49
 
50
  return summary
51
 
 
 
 
 
 
 
 
52
 
53
  iface = gr.Interface(
54
  summarize,
@@ -60,8 +67,10 @@ iface = gr.Interface(
60
  gr.inputs.Textbox(5),
61
  ],
62
  "text",
 
 
63
  examples=[
64
- ["LSA", 'english', 5, "URL", "https://en.wikipedia.org/wiki/Automatic_summarization"]
65
  ],
66
  )
67
 
 
49
 
50
  return summary
51
 
52
+ title = "sumy library space for automatic text summarization"
53
+
54
+ description = """
55
+ This is a space for [sumy](https://github.com/miso-belica/sumy), an automatic text summarization library.
56
+ The summary can be extracted either from an HTML page or plain text. You can find a list of available summarization
57
+ methods [here](https://github.com/miso-belica/sumy/blob/main/docs/summarizators.md).
58
+ """
59
 
60
  iface = gr.Interface(
61
  summarize,
 
67
  gr.inputs.Textbox(5),
68
  ],
69
  "text",
70
+ title=title,
71
+ description=description,
72
  examples=[
73
+ ["LSA", 'english', 2, "URL", "https://en.wikipedia.org/wiki/Automatic_summarization"]
74
  ],
75
  )
76