Mathias Lux commited on
Commit
79bb8b7
·
1 Parent(s): d9879f8

removed text area for sys message

Browse files
Files changed (1) hide show
  1. app.py +1 -3
app.py CHANGED
@@ -31,12 +31,11 @@ Can you please start by stating your name and talking about your early childhood
31
  def respond(
32
  message,
33
  history: list[tuple[str, str]],
34
- system_message,
35
  max_tokens,
36
  temperature,
37
  top_p,
38
  ):
39
- messages = [{"role": "system", "content": system_message},
40
  {"role": "assistant", "content": _ass_msg_start}]
41
 
42
  for val in history:
@@ -69,7 +68,6 @@ For information on how to customize the ChatInterface, peruse the gradio docs: h
69
  demo = gr.ChatInterface(
70
  respond,
71
  additional_inputs=[
72
- gr.Textbox(value=_sys_msg, label="System message"),
73
  gr.Slider(minimum=1, maximum=2048, value=1024, step=1, label="Max new tokens"),
74
  gr.Slider(minimum=0.1, maximum=4.0, value=0.7, step=0.1, label="Temperature"),
75
  gr.Slider(
 
31
  def respond(
32
  message,
33
  history: list[tuple[str, str]],
 
34
  max_tokens,
35
  temperature,
36
  top_p,
37
  ):
38
+ messages = [{"role": "system", "content": _sys_msg},
39
  {"role": "assistant", "content": _ass_msg_start}]
40
 
41
  for val in history:
 
68
  demo = gr.ChatInterface(
69
  respond,
70
  additional_inputs=[
 
71
  gr.Slider(minimum=1, maximum=2048, value=1024, step=1, label="Max new tokens"),
72
  gr.Slider(minimum=0.1, maximum=4.0, value=0.7, step=0.1, label="Temperature"),
73
  gr.Slider(