Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -11,7 +11,7 @@ def format_prompt(message, history, prompt):
|
|
11 |
return prompt
|
12 |
|
13 |
def generate(
|
14 |
-
prompt, history, system_prompt="", temperature=0.9, max_new_tokens=256, top_p=0.95, repetition_penalty=1.0,
|
15 |
):
|
16 |
temperature = float(temperature)
|
17 |
if temperature < 1e-2:
|
@@ -38,7 +38,7 @@ def generate(
|
|
38 |
return output
|
39 |
|
40 |
additional_inputs=[
|
41 |
-
gr.Textbox("", label="system_prompt"),
|
42 |
gr.Slider(
|
43 |
label="temperature",
|
44 |
value=0.9,
|
|
|
11 |
return prompt
|
12 |
|
13 |
def generate(
|
14 |
+
prompt, history, system_prompt="You are AmeuChat", temperature=0.9, max_new_tokens=256, top_p=0.95, repetition_penalty=1.0,
|
15 |
):
|
16 |
temperature = float(temperature)
|
17 |
if temperature < 1e-2:
|
|
|
38 |
return output
|
39 |
|
40 |
additional_inputs=[
|
41 |
+
gr.Textbox("You are AmeuChat", label="system_prompt"),
|
42 |
gr.Slider(
|
43 |
label="temperature",
|
44 |
value=0.9,
|