Update app.py
Browse files
app.py
CHANGED
@@ -111,7 +111,7 @@ tokenizer = AutoTokenizer.from_pretrained(checkpoint)
|
|
111 |
model = AutoModelForSeq2SeqLM.from_pretrained(checkpoint)
|
112 |
|
113 |
|
114 |
-
def summarize_and_display(text):
|
115 |
summary = summarize_text(text, tokenizer, model)
|
116 |
return summary
|
117 |
|
|
|
111 |
model = AutoModelForSeq2SeqLM.from_pretrained(checkpoint)
|
112 |
|
113 |
|
114 |
+
def summarize_and_display(text, button_click_event, interface_state):
|
115 |
summary = summarize_text(text, tokenizer, model)
|
116 |
return summary
|
117 |
|