akhooli commited on
Commit
6cff64f
1 Parent(s): e8febb2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -16,7 +16,7 @@ def sayPoetry(prompt, temp=0.95):
16
  for line in gen.split('.')[:-1]:
17
  poetry += line + "\n"
18
  return poetry
19
- temperature = gr.inputs.Slider(0.70, 1.0, value=0.94, step=0.01, label='control temperature'),
20
  input_prompt = gr.inputs.Textbox(label="Enter your prompt or select from examples:", placeholder="أنا الذي", lines=1)
21
  output_text = gr.outputs.Textbox(label="Generated Poetry:")
22
  poetry = gr.Interface(fn=sayPoetry, inputs=[input_prompt, temperature], outputs=output_text, allow_flagging='never',
 
16
  for line in gen.split('.')[:-1]:
17
  poetry += line + "\n"
18
  return poetry
19
+ temperature = gr.inputs.Slider(0.70, 1.0, step=0.01, label='control temperature'),
20
  input_prompt = gr.inputs.Textbox(label="Enter your prompt or select from examples:", placeholder="أنا الذي", lines=1)
21
  output_text = gr.outputs.Textbox(label="Generated Poetry:")
22
  poetry = gr.Interface(fn=sayPoetry, inputs=[input_prompt, temperature], outputs=output_text, allow_flagging='never',