freeCS-dot-org commited on
Commit
0244d86
1 Parent(s): c02dde9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -8
app.py CHANGED
@@ -61,7 +61,7 @@ def stream_chat(
61
  print(f'history: {history}')
62
 
63
  conversation = [
64
- {"role": "system", "content": system_prompt}
65
  ]
66
  for prompt, answer in history:
67
  conversation.extend([
@@ -108,16 +108,11 @@ with gr.Blocks(css=CSS, theme="soft") as demo:
108
  fill_height=True,
109
  additional_inputs_accordion=gr.Accordion(label="⚙️ Parameters", open=False, render=False),
110
  additional_inputs=[
111
- gr.Textbox(
112
- value="You are a helpful assistant",
113
- label="System Prompt",
114
- render=False,
115
- ),
116
  gr.Slider(
117
  minimum=0,
118
  maximum=1,
119
  step=0.1,
120
- value=0.8,
121
  label="Temperature",
122
  render=False,
123
  ),
@@ -125,7 +120,7 @@ with gr.Blocks(css=CSS, theme="soft") as demo:
125
  minimum=128,
126
  maximum=8192,
127
  step=1,
128
- value=1024,
129
  label="Max new tokens",
130
  render=False,
131
  ),
 
61
  print(f'history: {history}')
62
 
63
  conversation = [
64
+ {"role": "system", "content": ""}
65
  ]
66
  for prompt, answer in history:
67
  conversation.extend([
 
108
  fill_height=True,
109
  additional_inputs_accordion=gr.Accordion(label="⚙️ Parameters", open=False, render=False),
110
  additional_inputs=[
 
 
 
 
 
111
  gr.Slider(
112
  minimum=0,
113
  maximum=1,
114
  step=0.1,
115
+ value=0.2,
116
  label="Temperature",
117
  render=False,
118
  ),
 
120
  minimum=128,
121
  maximum=8192,
122
  step=1,
123
+ value=2048,
124
  label="Max new tokens",
125
  render=False,
126
  ),