Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -15,6 +15,10 @@ def summarize(text):
|
|
15 |
return tokenizer.decode(summary_ids[0], skip_special_tokens=True)
|
16 |
|
17 |
# Define the Gradio interface
|
18 |
-
iface = gr.Interface(
|
19 |
-
|
|
|
|
|
|
|
|
|
20 |
|
|
|
15 |
return tokenizer.decode(summary_ids[0], skip_special_tokens=True)
|
16 |
|
17 |
# Define the Gradio interface
|
18 |
+
iface = gr.Interface(
|
19 |
+
fn=summarize,
|
20 |
+
inputs=gr.inputs.Textbox(lines=2, placeholder="Enter your text here..."),
|
21 |
+
outputs="text",
|
22 |
+
title="Summarization by Flan-T5-Large with PEFT"
|
23 |
+
)
|
24 |
|