Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -23,7 +23,7 @@ Make it fun and perfect for a bed time
|
|
| 23 |
response = openai.ChatCompletion.create(
|
| 24 |
model="gpt-3.5-turbo",
|
| 25 |
messages=inject,
|
| 26 |
-
temperature=0.
|
| 27 |
max_tokens=1000,
|
| 28 |
top_p=1,
|
| 29 |
n=1,
|
|
@@ -54,9 +54,9 @@ with gr.Blocks() as demo:
|
|
| 54 |
with gr.Row():
|
| 55 |
btn = gr.Button("Make me a bed time story")
|
| 56 |
with gr.Row():
|
| 57 |
-
|
| 58 |
|
| 59 |
-
btn.click(fn=generate_story, inputs=[character1, character2, character3, character4, localizer, agefor, language, wordstouse], outputs=
|
| 60 |
|
| 61 |
demo.launch()
|
| 62 |
|
|
|
|
| 23 |
response = openai.ChatCompletion.create(
|
| 24 |
model="gpt-3.5-turbo",
|
| 25 |
messages=inject,
|
| 26 |
+
temperature=0.6,
|
| 27 |
max_tokens=1000,
|
| 28 |
top_p=1,
|
| 29 |
n=1,
|
|
|
|
| 54 |
with gr.Row():
|
| 55 |
btn = gr.Button("Make me a bed time story")
|
| 56 |
with gr.Row():
|
| 57 |
+
resultoutput = gr.Textbox(label="Here's my story")
|
| 58 |
|
| 59 |
+
btn.click(fn=generate_story, inputs=[character1, character2, character3, character4, localizer, agefor, language, wordstouse], outputs=resultoutput)
|
| 60 |
|
| 61 |
demo.launch()
|
| 62 |
|