xuqinyang commited on
Commit
30394c4
1 Parent(s): 1d97b1b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -2
app.py CHANGED
@@ -92,8 +92,16 @@ with gr.Blocks(css='style.css') as demo:
92
  saved_input = gr.State()
93
 
94
  with gr.Accordion(label='Advanced options', open=False):
95
- system_prompt = ""
96
- max_new_tokens = 1024
 
 
 
 
 
 
 
 
97
  temperature = gr.Slider(
98
  label='Temperature',
99
  minimum=0.1,
 
92
  saved_input = gr.State()
93
 
94
  with gr.Accordion(label='Advanced options', open=False):
95
+ system_prompt = gr.Textbox(label='System prompt',
96
+ value=DEFAULT_SYSTEM_PROMPT,
97
+ lines=6)
98
+ max_new_tokens = gr.Slider(
99
+ label='Max new tokens',
100
+ minimum=1,
101
+ maximum=MAX_MAX_NEW_TOKENS,
102
+ step=1,
103
+ value=DEFAULT_MAX_NEW_TOKENS,
104
+ )
105
  temperature = gr.Slider(
106
  label='Temperature',
107
  minimum=0.1,