carisackc commited on
Commit
e07fdc0
·
1 Parent(s): 7738521

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -8
app.py CHANGED
@@ -150,34 +150,31 @@ def run_model(input_text):
150
  if model == "BertSummarizer":
151
  output = original_text['BertSummarizer'].values
152
  st.write('Summary')
153
- st.success(output[0])
154
 
155
  elif model == "BertGPT2":
156
  output = original_text['BertGPT2'].values
157
  st.write('Summary')
158
- st.success(output[0])
159
 
160
 
161
  elif model == "t5seq2eq":
162
  output = original_text['t5seq2eq'].values
163
  st.write('Summary')
164
- st.success(output)
165
-
166
  elif model == "t5":
167
  output = original_text['t5'].values
168
  st.write('Summary')
169
- st.success(output)
170
 
171
  elif model == "gensim":
172
  output = original_text['gensim'].values
173
  st.write('Summary')
174
- st.success(output)
175
 
176
  elif model == "pysummarizer":
177
  output = original_text['pysummarizer'].values
178
  st.write('Summary')
179
- st.success(output)
180
- return output
 
 
181
 
182
  col1, col2 = st.columns([1,1])
183
 
 
150
  if model == "BertSummarizer":
151
  output = original_text['BertSummarizer'].values
152
  st.write('Summary')
 
153
 
154
  elif model == "BertGPT2":
155
  output = original_text['BertGPT2'].values
156
  st.write('Summary')
 
157
 
158
 
159
  elif model == "t5seq2eq":
160
  output = original_text['t5seq2eq'].values
161
  st.write('Summary')
162
+
 
163
  elif model == "t5":
164
  output = original_text['t5'].values
165
  st.write('Summary')
 
166
 
167
  elif model == "gensim":
168
  output = original_text['gensim'].values
169
  st.write('Summary')
 
170
 
171
  elif model == "pysummarizer":
172
  output = original_text['pysummarizer'].values
173
  st.write('Summary')
174
+
175
+ st.text_area(visualize (runtext,output))
176
+
177
+
178
 
179
  col1, col2 = st.columns([1,1])
180