Omnibus commited on
Commit
185619b
1 Parent(s): cadb7ad

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -114,6 +114,8 @@ with gr.Blocks() as app:
114
  with gr.Column(scale=3):
115
  inp = gr.Textbox(label="Prompt")
116
  sys_inp = gr.Textbox(label="System Prompt (optional)")
 
 
117
  with gr.Row():
118
  with gr.Column(scale=2):
119
  btn = gr.Button("Chat")
@@ -122,8 +124,6 @@ with gr.Blocks() as app:
122
  stop_btn=gr.Button("Stop")
123
  clear_btn=gr.Button("Clear")
124
  client_choice=gr.Dropdown(label="Models",type='index',choices=[c for c in models],value=models[0],interactive=True)
125
- with gr.Accordion("Prompt Format",open=False):
126
- custom_prompt=gr.Textbox(label="Modify Prompt Format", info="For testing purposes. 'USER_INPUT' is where 'SYSTEM_PROMPT, PROMPT' will be placed", lines=3,value="<start_of_turn>userUSER_INPUT<end_of_turn><start_of_turn>model")
127
  with gr.Column(scale=1):
128
  with gr.Group():
129
  rand = gr.Checkbox(label="Random Seed", value=True)
 
114
  with gr.Column(scale=3):
115
  inp = gr.Textbox(label="Prompt")
116
  sys_inp = gr.Textbox(label="System Prompt (optional)")
117
+ with gr.Accordion("Prompt Format",open=False):
118
+ custom_prompt=gr.Textbox(label="Modify Prompt Format", info="For testing purposes. 'USER_INPUT' is where 'SYSTEM_PROMPT, PROMPT' will be placed", lines=3,value="<start_of_turn>userUSER_INPUT<end_of_turn><start_of_turn>model")
119
  with gr.Row():
120
  with gr.Column(scale=2):
121
  btn = gr.Button("Chat")
 
124
  stop_btn=gr.Button("Stop")
125
  clear_btn=gr.Button("Clear")
126
  client_choice=gr.Dropdown(label="Models",type='index',choices=[c for c in models],value=models[0],interactive=True)
 
 
127
  with gr.Column(scale=1):
128
  with gr.Group():
129
  rand = gr.Checkbox(label="Random Seed", value=True)