kabita-choudhary commited on
Commit
85d0cf7
·
1 Parent(s): a93256c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -27,7 +27,7 @@ def summarize(data, modelname):
27
 
28
  st.sidebar.title("Text Summarization")
29
 
30
- uploaded_file = st.sidebar.file_uploader("Choose a file",help=" you can choose .txt file")
31
  data = ""
32
  output = ""
33
  if uploaded_file is not None:
@@ -35,7 +35,7 @@ if uploaded_file is not None:
35
  bytes_data = uploaded_file.getvalue()
36
 
37
  data = bytes_data.decode("utf-8")
38
- modelname = st.sidebar.radio("Choose your model",
39
  ["Bart", "Pegasus" ,"Meeting summary(bart-large-cnn-samsum)"],
40
  help=" you can choose between 3 models to summarize your text. More to come!", )
41
  col1, col2 = st.columns(2)
 
27
 
28
  st.sidebar.title("Text Summarization")
29
 
30
+ uploaded_file = st.file_uploader("Choose a file",help=" you can choose .txt file")
31
  data = ""
32
  output = ""
33
  if uploaded_file is not None:
 
35
  bytes_data = uploaded_file.getvalue()
36
 
37
  data = bytes_data.decode("utf-8")
38
+ modelname = st.radio("Choose your model",
39
  ["Bart", "Pegasus" ,"Meeting summary(bart-large-cnn-samsum)"],
40
  help=" you can choose between 3 models to summarize your text. More to come!", )
41
  col1, col2 = st.columns(2)