AkashKhamkar commited on
Commit
5349733
·
1 Parent(s): c0c001e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -134,7 +134,7 @@ def clean_text(link):
134
  df["utterance"] = df["utterance"].apply(lambda x: x.replace("\n", " ").replace("\r", " ").replace("\t", " "))
135
  # remove Nan
136
  df.dropna(inplace=True)
137
- sts = SemanticTextSegmention(df)
138
  texts = sts.get_segments()
139
  return texts
140
 
@@ -208,6 +208,6 @@ def t5_summarizer(link,start, end):
208
 
209
  textbox = gr.Textbox(label="Enter the link here !!! ", placeholder="Input text here !!! ", lines=2)
210
  outbox = gr.Textbox(label = "Below is the generated summary !", placeholder="Enter a link to see a summary over here !", lines =5)
211
- iface = gr.Interface(fn=t5_summarizer,inputs =["text","text","text"], outputs=outbox,css="body {background-color: red}").launch(debug=True)
212
 
213
  iface.queue().launch()
 
134
  df["utterance"] = df["utterance"].apply(lambda x: x.replace("\n", " ").replace("\r", " ").replace("\t", " "))
135
  # remove Nan
136
  df.dropna(inplace=True)
137
+ sts = SemanticTextSegmentation(df)
138
  texts = sts.get_segments()
139
  return texts
140
 
 
208
 
209
  textbox = gr.Textbox(label="Enter the link here !!! ", placeholder="Input text here !!! ", lines=2)
210
  outbox = gr.Textbox(label = "Below is the generated summary !", placeholder="Enter a link to see a summary over here !", lines =5)
211
+ iface = gr.Interface(fn=t5_summarizer,inputs =["text","text","text"], outputs=outbox,css="body {background-color:red}").launch(debug=True)
212
 
213
  iface.queue().launch()