mikegarts commited on
Commit
49f3561
1 Parent(s): 953e78b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -51,7 +51,7 @@ def generate(prompt):
51
 
52
  def generate_story(prompt):
53
  story = generate(prompt=prompt)
54
- summary = summarizer(story, min_length=5, max_length=15)[0]['summary_text']
55
  return story, summary, gr.update(visible=True)
56
 
57
  def on_change_event(app_state):
 
51
 
52
  def generate_story(prompt):
53
  story = generate(prompt=prompt)
54
+ summary = summarizer(story, min_length=5, max_length=15)[0]['summary_text'].split('.')[0]
55
  return story, summary, gr.update(visible=True)
56
 
57
  def on_change_event(app_state):