Update app.py
Browse files
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):
|