abhisheky127 commited on
Commit
e36f4bc
β€’
1 Parent(s): 53d25df

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -34,9 +34,9 @@ if st.button('Summarize'):
34
  with st.spinner(
35
  "Summarizing your feedback : `{}` ".format(text)
36
  ):
37
- text = "<product>{}</product><type>{}</type><text>{}</text>".format(product, type, text)
38
 
39
- res = summarizer(text)[0]["summary_text"]
40
  res = postprocess(res, text)
41
  st.info(res, icon="πŸ€–")
42
  else:
 
34
  with st.spinner(
35
  "Summarizing your feedback : `{}` ".format(text)
36
  ):
37
+ text1 = "<product>{}</product><type>{}</type><text>{}</text>".format(product, type, text)
38
 
39
+ res = summarizer(text1)[0]["summary_text"]
40
  res = postprocess(res, text)
41
  st.info(res, icon="πŸ€–")
42
  else: