Spaces:
Running
Running
nvm it broked
Browse files
app.py
CHANGED
@@ -18,7 +18,6 @@ def respond(
|
|
18 |
max_tokens,
|
19 |
temperature,
|
20 |
top_p,
|
21 |
-
repetition_penalty,
|
22 |
):
|
23 |
messages = [{"role": "system", "content": system_message}]
|
24 |
|
@@ -38,7 +37,6 @@ def respond(
|
|
38 |
stream=True,
|
39 |
temperature=temperature,
|
40 |
top_p=top_p,
|
41 |
-
repetition_penalty=repetition_penalty,
|
42 |
messages=messages,
|
43 |
):
|
44 |
token = message.choices[0].delta.content
|
@@ -62,14 +60,6 @@ demo = gr.ChatInterface(
|
|
62 |
label="Top-P",
|
63 |
visible=True,
|
64 |
),
|
65 |
-
gr.Slider(
|
66 |
-
minimum=1.0,
|
67 |
-
maximum=2.0,
|
68 |
-
value=1.2,
|
69 |
-
step=0.05,
|
70 |
-
label="Repetition penalty",
|
71 |
-
visible=True,
|
72 |
-
),
|
73 |
|
74 |
],
|
75 |
fill_height=True,
|
|
|
18 |
max_tokens,
|
19 |
temperature,
|
20 |
top_p,
|
|
|
21 |
):
|
22 |
messages = [{"role": "system", "content": system_message}]
|
23 |
|
|
|
37 |
stream=True,
|
38 |
temperature=temperature,
|
39 |
top_p=top_p,
|
|
|
40 |
messages=messages,
|
41 |
):
|
42 |
token = message.choices[0].delta.content
|
|
|
60 |
label="Top-P",
|
61 |
visible=True,
|
62 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
63 |
|
64 |
],
|
65 |
fill_height=True,
|