Spaces:
Runtime error
Runtime error
message
Browse files
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("
|
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
|