Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -15,7 +15,7 @@ def format_prompt(message, history):
|
|
15 |
return prompt
|
16 |
|
17 |
def generate(
|
18 |
-
prompt, history, temperature=0.9, max_new_tokens=256, top_p=0.
|
19 |
):
|
20 |
temperature = float(temperature)
|
21 |
if temperature < 1e-2:
|
@@ -106,4 +106,4 @@ with gr.Blocks(css=css) as demo:
|
|
106 |
examples=[["What is the secret to life?"], ["Write me a recipe for pancakes."]]
|
107 |
)
|
108 |
|
109 |
-
demo.queue(concurrency_count=
|
|
|
15 |
return prompt
|
16 |
|
17 |
def generate(
|
18 |
+
prompt, history, temperature=0.9, max_new_tokens=256, top_p=0.45, repetition_penalty=1.0,
|
19 |
):
|
20 |
temperature = float(temperature)
|
21 |
if temperature < 1e-2:
|
|
|
106 |
examples=[["What is the secret to life?"], ["Write me a recipe for pancakes."]]
|
107 |
)
|
108 |
|
109 |
+
demo.queue(concurrency_count=25, max_size=50).launch(debug=True)
|