Eunchan Lee commited on
Commit
995b120
1 Parent(s): fa5e082
Files changed (1) hide show
  1. app.py +8 -8
app.py CHANGED
@@ -46,21 +46,24 @@ Prosecutors said the marriages were part of an immigration scam. On Friday, she
46
  The case was referred to the Bronx District Attorney\'s Office by Immigration and Customs Enforcement and the Department of Homeland Security\'s Investigation Division. Seven of the men are from so-called "red-flagged" countries, including Egypt, Turkey, Georgia, Pakistan and Mali. Her eighth husband, Rashid Rajput, was deported in 2006 to his native Pakistan after an investigation by the Joint Terrorism Task Force. If convicted, Barrientos faces up to four years in prison. Her next court appearance is scheduled for May 18."""
47
 
48
 
49
- with st.spinner(' (1) / (3) Loading BART Pretrained Model (_please allow for 30 seconds_)...'):
50
  summarizer_1 = load_plms(plms[0])
51
 
52
- with st.spinner(' (2) / (3) Loading Google-PEGASUS Pretrained Model (_please allow for 30 seconds_)...'):
53
  summarizer_2 = load_plms(plms[1])
54
  #summarizer_3 = load_plms(plms[2])
 
 
 
 
55
 
56
- with st.spinner(' (3) / (3) Loading Pretraining Classifier'):
57
  classifier = load_zeroshot_classifier()
58
 
59
  st.success("All Loadings are done!")
60
 
61
 
62
 
63
-
64
  st.markdown("### Information")
65
  st.write("__Inputs__: Text your input article!!")
66
  st.write("__Outputs__: Summarizing output text by State-of-the-art NLP summarization Models! ")
@@ -73,11 +76,9 @@ with st.form(key="input_area"):
73
  submit_button = st.form_submit_button(label='SUBMIT')
74
 
75
 
76
-
77
  output_text = []
78
 
79
 
80
-
81
  if submit_button:
82
  with st.spinner('On summarizing !...wait a second please..'):
83
 
@@ -106,5 +107,4 @@ if submit_button:
106
  if balloon_button:
107
  st.balloons()
108
 
109
-
110
-
 
46
  The case was referred to the Bronx District Attorney\'s Office by Immigration and Customs Enforcement and the Department of Homeland Security\'s Investigation Division. Seven of the men are from so-called "red-flagged" countries, including Egypt, Turkey, Georgia, Pakistan and Mali. Her eighth husband, Rashid Rajput, was deported in 2006 to his native Pakistan after an investigation by the Joint Terrorism Task Force. If convicted, Barrientos faces up to four years in prison. Her next court appearance is scheduled for May 18."""
47
 
48
 
49
+ with st.spinner(' (1) / (4) Loading BART Pretrained Model (_please allow for 30 seconds_)...'):
50
  summarizer_1 = load_plms(plms[0])
51
 
52
+ with st.spinner(' (2) / (4) Loading Google-PEGASUS Pretrained Model (_please allow for 30 seconds_)...'):
53
  summarizer_2 = load_plms(plms[1])
54
  #summarizer_3 = load_plms(plms[2])
55
+
56
+ with st.spinner(' (3) / (4) Loading Google-PEGASUS Pretrained Model (_please allow for 30 seconds_)...'):
57
+ summarizer_3 = load_plms(plms[2])
58
+ #summarizer_3 = load_plms(plms[2])
59
 
60
+ with st.spinner(' (4) / (4) Loading Pretraining Classifier'):
61
  classifier = load_zeroshot_classifier()
62
 
63
  st.success("All Loadings are done!")
64
 
65
 
66
 
 
67
  st.markdown("### Information")
68
  st.write("__Inputs__: Text your input article!!")
69
  st.write("__Outputs__: Summarizing output text by State-of-the-art NLP summarization Models! ")
 
76
  submit_button = st.form_submit_button(label='SUBMIT')
77
 
78
 
 
79
  output_text = []
80
 
81
 
 
82
  if submit_button:
83
  with st.spinner('On summarizing !...wait a second please..'):
84
 
 
107
  if balloon_button:
108
  st.balloons()
109
 
110
+