rodolfoocampo commited on
Commit
c0437e0
1 Parent(s): 6aba8ac

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -44,7 +44,7 @@ def generateStory(theme1, theme2):
44
  return story
45
 
46
 
47
- def illustratedStory(theme1, theme2):
48
 
49
  if story != 'Please generate again':
50
  #image_prompt = illustration_response["choices"][0]["text"]
@@ -175,7 +175,7 @@ with gr.Blocks(css='''
175
 
176
 
177
  b1.click(generateStory, inputs=[theme1,theme2], outputs=[story_output])
178
- b2.click(illustratedStory, inputs=[theme1, theme2], outputs=[illustration])
179
 
180
 
181
 
 
44
  return story
45
 
46
 
47
+ def illustratedStory(story, theme1, theme2):
48
 
49
  if story != 'Please generate again':
50
  #image_prompt = illustration_response["choices"][0]["text"]
 
175
 
176
 
177
  b1.click(generateStory, inputs=[theme1,theme2], outputs=[story_output])
178
+ b2.click(illustratedStory, inputs=[story, theme1, theme2], outputs=[illustration])
179
 
180
 
181