efederici commited on
Commit
1e9906d
1 Parent(s): a4a62dd
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -39,7 +39,7 @@ class TextSummarizer:
39
 
40
  def summarize(self, model_name, input_text, generate_kwargs) -> str:
41
  if not self.generator or self.model_loaded != model_name:
42
- with st.spinner("Downloading/loading model..."):
43
  self.load(model_name)
44
  return self.generator(
45
  input_text, return_tensors=False, return_text=True, **generate_kwargs
 
39
 
40
  def summarize(self, model_name, input_text, generate_kwargs) -> str:
41
  if not self.generator or self.model_loaded != model_name:
42
+ with st.spinner("meanwhile: downloading/loading selected model...please don't go :("):
43
  self.load(model_name)
44
  return self.generator(
45
  input_text, return_tensors=False, return_text=True, **generate_kwargs