Spaces:
Runtime error
Runtime error
Commit
·
aca8fee
1
Parent(s):
e00c743
Persona first
Browse files
app.py
CHANGED
@@ -27,8 +27,8 @@ for name in config:
|
|
27 |
def respond(
|
28 |
message,
|
29 |
history: List[Tuple[str, str]],
|
30 |
-
model,
|
31 |
persona,
|
|
|
32 |
conversational,
|
33 |
max_tokens,
|
34 |
):
|
@@ -69,8 +69,8 @@ def respond(
|
|
69 |
demo = gr.ChatInterface(
|
70 |
respond,
|
71 |
additional_inputs=[
|
72 |
-
gr.Radio(choices=model_names, value="stable", label="model"),
|
73 |
gr.Radio(choices=personas, value="default", label="persona"),
|
|
|
74 |
gr.Checkbox(value=True, label="conversational"),
|
75 |
gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Max new tokens"),
|
76 |
],
|
|
|
27 |
def respond(
|
28 |
message,
|
29 |
history: List[Tuple[str, str]],
|
|
|
30 |
persona,
|
31 |
+
model,
|
32 |
conversational,
|
33 |
max_tokens,
|
34 |
):
|
|
|
69 |
demo = gr.ChatInterface(
|
70 |
respond,
|
71 |
additional_inputs=[
|
|
|
72 |
gr.Radio(choices=personas, value="default", label="persona"),
|
73 |
+
gr.Radio(choices=model_names, value="stable", label="model"),
|
74 |
gr.Checkbox(value=True, label="conversational"),
|
75 |
gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Max new tokens"),
|
76 |
],
|