Spaces:
Runtime error
Runtime error
Danil
commited on
Commit
·
e4681ee
1
Parent(s):
f6af407
Update app.py
Browse files
app.py
CHANGED
@@ -17,8 +17,8 @@ def happytt(temperature,max_tokens,text,stop):
|
|
17 |
top_p=1,
|
18 |
frequency_penalty=0,
|
19 |
presence_penalty=0,
|
20 |
-
stop=
|
21 |
-
|
22 |
|
23 |
return response.choices[0].text
|
24 |
|
@@ -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="
|
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
|
24 |
|
|
|
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)
|