Guiyom commited on
Commit
d8ef11d
·
1 Parent(s): 3d642b8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -6,7 +6,7 @@ import os as os
6
  openai.api_key = os.environ.get('openai-api')
7
 
8
  #Functions
9
- def generate_story(character1, character2, character3, character4, localizer, agefor, language, wordstouse):
10
  agefor = min(max(agefor, 2), 12) # Ensure agefor is between 0 and 12
11
 
12
  # Define the prompt
@@ -58,7 +58,7 @@ with gr.Blocks() as demo:
58
  with gr.Row():
59
  resultoutput = gr.Textbox(label="Here's my story")
60
 
61
- btn.click(fn=generate_story, inputs=[character1, character2, character3, character4, localizer, agefor, language, content, wordstouse], outputs=resultoutput)
62
 
63
  demo.launch()
64
 
 
6
  openai.api_key = os.environ.get('openai-api')
7
 
8
  #Functions
9
+ def generate_story(character1, character2, character3, character4, localizer, agefor, language, wordstouse, content):
10
  agefor = min(max(agefor, 2), 12) # Ensure agefor is between 0 and 12
11
 
12
  # Define the prompt
 
58
  with gr.Row():
59
  resultoutput = gr.Textbox(label="Here's my story")
60
 
61
+ btn.click(fn=generate_story, inputs=[character1, character2, character3, character4, localizer, agefor, language, content, words tous, content], outputs=resultoutput)
62
 
63
  demo.launch()
64