Danil commited on
Commit
906d19a
·
1 Parent(s): 8fa3c01

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -17,7 +17,7 @@ def happytt(temperature,max_tokens,text,stop):
17
  top_p=1,
18
  frequency_penalty=0,
19
  presence_penalty=0,
20
- stop=stop
21
  )
22
 
23
  return response.choices[0].text
@@ -42,5 +42,5 @@ iface = gr.Interface( happytt,[ gr.inputs.Slider(0, 1, step=0.1),gr.inputs.Slide
42
  gr.inputs.Textbox(type='str',
43
  label="input prompt"),
44
  gr.inputs.Textbox(type='str',
45
- label='Tokens that indicate the end of the generation Use ";" for more than one').split(";")],"text", title = title, description = description )
46
  iface.launch(debug=True)
 
17
  top_p=1,
18
  frequency_penalty=0,
19
  presence_penalty=0,
20
+ stop=[stop]
21
  )
22
 
23
  return response.choices[0].text
 
42
  gr.inputs.Textbox(type='str',
43
  label="input prompt"),
44
  gr.inputs.Textbox(type='str',
45
+ label='Token that indicate the end of the generation.')],"text", title = title, description = description )
46
  iface.launch(debug=True)