zeyadusf commited on
Commit
311dda4
1 Parent(s): 14c59a2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -2
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(fn=summarize, inputs="text", outputs="text", title="Summarization with PEFT")
19
- iface.launch()
 
 
 
 
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