File size: 466 Bytes
6a6eef6
 
 
 
 
 
 
 
 
 
 
 
a18c6ec
6a6eef6
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import gradio as gr
import newspaper
from newspaper import Article
import nltk
nltk.download('punkt')
def art(url):
  art=Article(url)
  art.download()
  art.parse()
  art.nlp()
  out=art.summary
  return out
demo = gr.Interface(fn=art,inputs='text',outputs='text',examples= [['https://www.hindustantimes.com/technology/chatgpts-sam-altman-meets-pm-narendra-modi-discussed-artificial-intelligence-regulation-openai-ceo-in-india-101686223745661.html']])
demo.launch()