Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -26,7 +26,7 @@ client = Client(
|
|
26 |
)
|
27 |
|
28 |
|
29 |
-
def generate(prompt, temperature=0.9, max_new_tokens=256, top_p=0.95, repetition_penalty=1.0
|
30 |
|
31 |
temperature = float(temperature)
|
32 |
if temperature < 1e-2:
|
@@ -129,7 +129,7 @@ with gr.Blocks(theme=theme, analytics_enabled=False, css=css) as demo:
|
|
129 |
info="Penalize repeated tokens",
|
130 |
)
|
131 |
|
132 |
-
submit.click(generate, inputs=[instruction, temperature, max_new_tokens, top_p, repetition_penalty
|
133 |
instruction.submit(generate, inputs=[instruction, temperature, max_new_tokens, top_p, repetition_penalty], outputs=[output])
|
134 |
|
135 |
demo.queue(concurrency_count=16).launch(debug=True)
|
|
|
26 |
)
|
27 |
|
28 |
|
29 |
+
def generate(prompt, temperature=0.9, max_new_tokens=256, top_p=0.95, repetition_penalty=1.0):
|
30 |
|
31 |
temperature = float(temperature)
|
32 |
if temperature < 1e-2:
|
|
|
129 |
info="Penalize repeated tokens",
|
130 |
)
|
131 |
|
132 |
+
submit.click(generate, inputs=[instruction, temperature, max_new_tokens, top_p, repetition_penalty], outputs=[output])
|
133 |
instruction.submit(generate, inputs=[instruction, temperature, max_new_tokens, top_p, repetition_penalty], outputs=[output])
|
134 |
|
135 |
demo.queue(concurrency_count=16).launch(debug=True)
|