Moran commited on
Commit
df52532
·
1 Parent(s): 0206efd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -3
app.py CHANGED
@@ -21,8 +21,6 @@ def start_summarize(long_text, model, size):
21
  if num_of_sentences > 4:
22
  if model=="RankText":
23
  summary = textrank(long_text, size/100)
24
- # if summary=="":
25
- # summary = long_text
26
  elif model=="Bart":
27
  repo_id = "Aviv/Moran_Aviv_Bart"
28
 
@@ -30,7 +28,6 @@ def start_summarize(long_text, model, size):
30
  summary = inf_learn.blurr_generate([long_text])[0]['generated_texts']
31
  else:
32
  summary = long_text
33
- # if summary!="":
34
  st.success(summary)
35
  st.select_slider('What do you think about the summary?', options=['Bad', 'Good', 'Excellent'], value=('Good'))
36
 
 
21
  if num_of_sentences > 4:
22
  if model=="RankText":
23
  summary = textrank(long_text, size/100)
 
 
24
  elif model=="Bart":
25
  repo_id = "Aviv/Moran_Aviv_Bart"
26
 
 
28
  summary = inf_learn.blurr_generate([long_text])[0]['generated_texts']
29
  else:
30
  summary = long_text
 
31
  st.success(summary)
32
  st.select_slider('What do you think about the summary?', options=['Bad', 'Good', 'Excellent'], value=('Good'))
33