akhooli commited on
Commit
e8febb2
1 Parent(s): ea85ffc

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.Slider(0.70, 1.0, value=0.94, step=0.01),
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, 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',