ColeGuion commited on
Commit
80d968d
·
verified ·
1 Parent(s): 5a86243

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -50,7 +50,7 @@ def generate(prompt, history, system_prompt, temperature=0.9, max_new_tokens=256
50
 
51
 
52
  additional_inputs=[
53
- gr.Textbox( label="System Prompt", max_lines=1, interactive=True, ),
54
  gr.Slider( label="Temperature", value=0.9, minimum=0.0, maximum=1.0, step=0.05, interactive=True, info="Higher values produce more diverse outputs", ),
55
  gr.Slider( label="Max new tokens", value=256, minimum=0, maximum=1048, step=64, interactive=True, info="The maximum numbers of new tokens", ),
56
  gr.Slider( label="Top-p (nucleus sampling)", value=0.90, minimum=0.0, maximum=1, step=0.05, interactive=True, info="Higher values sample more low-probability tokens", ),
 
50
 
51
 
52
  additional_inputs=[
53
+ gr.Textbox( label="System Prompt", default="You are an expert at English grammar" , max_lines=1, interactive=True, ),
54
  gr.Slider( label="Temperature", value=0.9, minimum=0.0, maximum=1.0, step=0.05, interactive=True, info="Higher values produce more diverse outputs", ),
55
  gr.Slider( label="Max new tokens", value=256, minimum=0, maximum=1048, step=64, interactive=True, info="The maximum numbers of new tokens", ),
56
  gr.Slider( label="Top-p (nucleus sampling)", value=0.90, minimum=0.0, maximum=1, step=0.05, interactive=True, info="Higher values sample more low-probability tokens", ),