abhisheky127
commited on
Commit
β’
e36f4bc
1
Parent(s):
53d25df
Update app.py
Browse files
app.py
CHANGED
@@ -34,9 +34,9 @@ if st.button('Summarize'):
|
|
34 |
with st.spinner(
|
35 |
"Summarizing your feedback : `{}` ".format(text)
|
36 |
):
|
37 |
-
|
38 |
|
39 |
-
res = summarizer(
|
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:
|