fffiloni commited on
Commit
dcd0485
β€’
1 Parent(s): 9451bbb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -12,7 +12,7 @@ import wave
12
 
13
  openai_api_key = os.environ.get("OPENAI_API_KEY")
14
 
15
- llm = OpenAI(temperature=0.9, max_tokens=256)
16
 
17
  def split_text_into_sentences(text):
18
  sentences = []
@@ -108,7 +108,7 @@ with gr.Blocks(css=css) as demo:
108
  </h1>
109
  </div>
110
  <p style="margin-bottom: 10px; font-size: 94%">
111
- Generate a bedtime story for a 5 years old audience who needs to get sleep 😴
112
  </p>
113
  </div>""")
114
  text = gr.Textbox(label="Subject: what the story should be about ?", info="Will generate and tell a story about {your text input}")
 
12
 
13
  openai_api_key = os.environ.get("OPENAI_API_KEY")
14
 
15
+ llm = OpenAI(temperature=0.9, max_tokens=-1)
16
 
17
  def split_text_into_sentences(text):
18
  sentences = []
 
108
  </h1>
109
  </div>
110
  <p style="margin-bottom: 10px; font-size: 94%">
111
+ Generate a bedtime story for a 5 years old audience who needs to get some sleep 😴
112
  </p>
113
  </div>""")
114
  text = gr.Textbox(label="Subject: what the story should be about ?", info="Will generate and tell a story about {your text input}")