l1 = tk.Label ( my_w,text ='\n Upload Text file, get \n summarized text pdf \n & \n Listen summarized text \ n',width =45,font=('italic',20,'bold'), bg ='black', fg ='white',) l1.place(x=470, y=250,width=420) #-------------------- upload button ---------------------------------------------- b1 = tk.Button ( my_w , text='UPLOAD FILES', width=20,command = lambda:qsnpaper (), activebackground =' skyblue ',font=('italic',17,'bold') , bg ='black', fg ='#fc3a52') b1.place(x=80,y=600, width=180, height=40) #---------------------------------------------------------------------------------- print( tf .__version__) print(".\n. \n. \n. \n. \n. \n. \n. \n. \n. \n. \n. \n") print("upload text file for summarize.....") titleLabel = Label( my_w , text='Speech Based Text Summarizer', font=('italic', 25, 'bold '), bg ='black', fg ='#fc3a52', ) titleLabel.place (x=2, y=6,width=1366, height=80) def result(): text = upload_file () print("original Text \ n",text ) stopWords = set( stopwords.words (" english ")) words = word_tokenize (text ) # Creating a frequency table to keep the