djstrong commited on
Commit
f63805d
1 Parent(s): 941a32f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
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=True),
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"),