nxphi47 commited on
Commit
17cb1f2
1 Parent(s): c26200d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -778,7 +778,7 @@ def chat_response_stream_multiturn(
778
  gr.Number(value=max_tokens, label='Max generated tokens (increase if want more generation)'),
779
  gr.Number(value=frequence_penalty, label='Frequency penalty (> 0 encourage new tokens over repeated tokens)'),
780
  gr.Number(value=presence_penalty, label='Presence penalty (> 0 encourage new tokens, < 0 encourage existing tokens)'),
781
- gr.Textbox(value=sys_prompt, label='System prompt', lines=8, interactive=False)
782
  gr.Number(value=0, label='current_time', visible=False),
783
  """
784
  global LOG_FILE, LOG_PATH
@@ -1440,7 +1440,7 @@ def create_chat_demo(title=None, description=None):
1440
  gr.Number(value=max_tokens, label='Max generated tokens (increase if want more generation)'),
1441
  gr.Number(value=frequence_penalty, label='Frequency penalty (> 0 encourage new tokens over repeated tokens)'),
1442
  gr.Number(value=presence_penalty, label='Presence penalty (> 0 encourage new tokens, < 0 encourage existing tokens)'),
1443
- gr.Textbox(value=sys_prompt, label='System prompt', lines=8, interactive=False)
1444
  gr.Number(value=0, label='current_time', visible=False),
1445
  # ! Remove the system prompt textbox to avoid jailbreaking
1446
  ],
 
778
  gr.Number(value=max_tokens, label='Max generated tokens (increase if want more generation)'),
779
  gr.Number(value=frequence_penalty, label='Frequency penalty (> 0 encourage new tokens over repeated tokens)'),
780
  gr.Number(value=presence_penalty, label='Presence penalty (> 0 encourage new tokens, < 0 encourage existing tokens)'),
781
+ gr.Textbox(value=sys_prompt, label='System prompt', lines=8, interactive=False),
782
  gr.Number(value=0, label='current_time', visible=False),
783
  """
784
  global LOG_FILE, LOG_PATH
 
1440
  gr.Number(value=max_tokens, label='Max generated tokens (increase if want more generation)'),
1441
  gr.Number(value=frequence_penalty, label='Frequency penalty (> 0 encourage new tokens over repeated tokens)'),
1442
  gr.Number(value=presence_penalty, label='Presence penalty (> 0 encourage new tokens, < 0 encourage existing tokens)'),
1443
+ gr.Textbox(value=sys_prompt, label='System prompt', lines=8, interactive=False),
1444
  gr.Number(value=0, label='current_time', visible=False),
1445
  # ! Remove the system prompt textbox to avoid jailbreaking
1446
  ],