d0r1h commited on
Commit
8fffcf8
1 Parent(s): 3d3dd88

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -6
app.py CHANGED
@@ -1,6 +1,13 @@
1
  import gradio as gr
2
  from summarizer import summarize
3
 
 
 
 
 
 
 
 
4
  link1 = "https://www.amarujala.com/world/india-providing-dry-ration-packs-to-widows-and-needy-families-in-sri-lanka-ahead-of-eid-ins-gharial-brough-medicines-to-colombo-news-in-hindi"
5
 
6
  link2 = "https://www.amarujala.com/lucknow/now-the-government-will-go-to-village-to-buy-wheat-in-up-and-wheat-will-also-be-purchased-from-mobile-purchasing-centers"
@@ -10,12 +17,6 @@ link3 = "https://www.amarujala.com/india-news/supreme-court-cannot-give-the-stat
10
  with open("Example/File.txt", 'r', encoding="utf8") as f:
11
  text = f.read()
12
 
13
- description = """
14
- <center>
15
- SAR (सार) in Hindi means summary, It's a tool to summarize Hindi News with SOTA models
16
- </center>
17
- """
18
- article="<p style='text-align: center'> Created by Pawan Trivedi 2022 | <a href='https://github.com/d0r1h/SAR/'>GitHub</a></p>"
19
 
20
  interface = gr.Interface(fn = summarize,
21
  inputs = [gr.inputs.Textbox(lines=5,
 
1
  import gradio as gr
2
  from summarizer import summarize
3
 
4
+ description = """
5
+ <center>
6
+ SAR (सार) in Hindi means summary, It's a tool to summarize Hindi News with SOTA models
7
+ </center>
8
+ """
9
+ article="<p style='text-align: center'> Created by Pawan Trivedi 2022 | <a href='https://github.com/d0r1h/SAR/'>GitHub</a></p>"
10
+
11
  link1 = "https://www.amarujala.com/world/india-providing-dry-ration-packs-to-widows-and-needy-families-in-sri-lanka-ahead-of-eid-ins-gharial-brough-medicines-to-colombo-news-in-hindi"
12
 
13
  link2 = "https://www.amarujala.com/lucknow/now-the-government-will-go-to-village-to-buy-wheat-in-up-and-wheat-will-also-be-purchased-from-mobile-purchasing-centers"
 
17
  with open("Example/File.txt", 'r', encoding="utf8") as f:
18
  text = f.read()
19
 
 
 
 
 
 
 
20
 
21
  interface = gr.Interface(fn = summarize,
22
  inputs = [gr.inputs.Textbox(lines=5,