astro21 commited on
Commit
950ec7b
·
1 Parent(s): e02cc8f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -6,7 +6,7 @@ summarizer = pipeline("summarization", model="astro21/bart-cls")
6
 
7
  def summarize_text(input_text):
8
  # Use the summarization pipeline to generate a summary
9
- summarized_text = summarizer(input_text, max_length=128, min_length=64, do_sample=False, wait_for_model=True)
10
  return summarized_text[0]['summary_text']
11
 
12
  demo = gr.Interface(fn= summarize_text , inputs="text", outputs="text")
 
6
 
7
  def summarize_text(input_text):
8
  # Use the summarization pipeline to generate a summary
9
+ summarized_text = summarizer(input_text, max_length=128, min_length=64, do_sample=False)
10
  return summarized_text[0]['summary_text']
11
 
12
  demo = gr.Interface(fn= summarize_text , inputs="text", outputs="text")