Spaces:
Runtime error
Runtime error
fix: show the system prompt to the user
Browse files
app.py
CHANGED
@@ -36,7 +36,7 @@ def format_prompt(message, history, system_prompt):
|
|
36 |
return prompt
|
37 |
|
38 |
def generate(
|
39 |
-
prompt, history, system_prompt
|
40 |
):
|
41 |
temperature = float(temperature)
|
42 |
if temperature < 1e-2:
|
@@ -70,7 +70,7 @@ def generate(
|
|
70 |
|
71 |
|
72 |
additional_inputs=[
|
73 |
-
gr.Textbox("", label="Optional system prompt"),
|
74 |
gr.Slider(
|
75 |
label="Temperature",
|
76 |
value=1.0,
|
|
|
36 |
return prompt
|
37 |
|
38 |
def generate(
|
39 |
+
prompt, history, system_prompt, temperature=0.9, max_new_tokens=100, top_p=0.95, repetition_penalty=1.0, seed=42,
|
40 |
):
|
41 |
temperature = float(temperature)
|
42 |
if temperature < 1e-2:
|
|
|
70 |
|
71 |
|
72 |
additional_inputs=[
|
73 |
+
gr.Textbox("<|endoftext|>", label="Optional system prompt"),
|
74 |
gr.Slider(
|
75 |
label="Temperature",
|
76 |
value=1.0,
|