Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -55,6 +55,7 @@ def send_discord(i,o):
|
|
55 |
|
56 |
@spaces.GPU()
|
57 |
def predict(message, history, system_prompt, temperature, max_new_tokens, top_k, repetition_penalty, top_p):
|
|
|
58 |
# Format history with a given chat template
|
59 |
if CHAT_TEMPLATE == "ChatML":
|
60 |
stop_tokens = ["<|endoftext|>", "<|im_end|>"]
|
@@ -137,7 +138,7 @@ gr.ChatInterface(
|
|
137 |
["Ile to jest 9+2-1?"],
|
138 |
["Napisz mi co艣 mi艂ego."]
|
139 |
],
|
140 |
-
additional_inputs_accordion=gr.Accordion(label="鈿欙笍 Parameters", open=
|
141 |
additional_inputs=[
|
142 |
gr.Textbox("Jeste艣 pomocnym asystentem o imieniu Bielik.", label="System prompt"),
|
143 |
gr.Slider(0, 1, 0.6, label="Temperature"),
|
|
|
55 |
|
56 |
@spaces.GPU()
|
57 |
def predict(message, history, system_prompt, temperature, max_new_tokens, top_k, repetition_penalty, top_p):
|
58 |
+
print('LLL', message, history, system_prompt, temperature, max_new_tokens, top_k, repetition_penalty, top_p)
|
59 |
# Format history with a given chat template
|
60 |
if CHAT_TEMPLATE == "ChatML":
|
61 |
stop_tokens = ["<|endoftext|>", "<|im_end|>"]
|
|
|
138 |
["Ile to jest 9+2-1?"],
|
139 |
["Napisz mi co艣 mi艂ego."]
|
140 |
],
|
141 |
+
additional_inputs_accordion=gr.Accordion(label="鈿欙笍 Parameters", open=False),
|
142 |
additional_inputs=[
|
143 |
gr.Textbox("Jeste艣 pomocnym asystentem o imieniu Bielik.", label="System prompt"),
|
144 |
gr.Slider(0, 1, 0.6, label="Temperature"),
|