John6666 commited on
Commit
593457e
β€’
1 Parent(s): f03d430

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +18 -18
app.py CHANGED
@@ -39,24 +39,24 @@ with gr.Blocks(theme="NoCrypt/miku@>=1.2.2", css="") as app:
39
  chat_msg = gr.Textbox(show_label=False, placeholder="Input text in English, Japanese, or any other languages and press Enter or click Send.", scale=4)
40
  chat_submit = gr.Button("Send", scale=1)
41
  chat_clear = gr.Button("Clear", scale=1)
42
- with gr.Accordion("Additional inputs", open=False):
43
- chat_format = gr.Dropdown(choices=get_llm_formats(), value=get_dolphin_model_format(get_dolphin_models()[0][1]), label="Message format")
44
- chat_sysmsg = gr.Textbox(value=get_dolphin_sysprompt(), label="System message")
45
- chat_tokens = gr.Slider(minimum=1, maximum=4096, value=1024, step=1, label="Max tokens")
46
- chat_temperature = gr.Slider(minimum=0.1, maximum=4.0, value=0.7, step=0.1, label="Temperature")
47
- chat_topp = gr.Slider(minimum=0.1, maximum=1.0, value=0.95, step=0.05, label="Top-p")
48
- chat_topk = gr.Slider(minimum=0, maximum=100, value=40, step=1, label="Top-k")
49
- chat_rp = gr.Slider(minimum=0.0, maximum=2.0, value=1.1, step=0.1, label="Repetition penalty")
50
- with gr.Accordion("Add models", open=True):
51
- chat_add_text = gr.Textbox(label="URL or Repo ID", placeholder="http://huggingface.co/.../...gguf or author/model", lines=1)
52
- chat_add_format = gr.Dropdown(choices=get_llm_formats(), value=get_llm_formats()[0], label="Message format")
53
- chat_add_submit = gr.Button("Update lists of models")
54
- with gr.Accordion("Modes", open=True):
55
- chat_model = gr.Dropdown(choices=get_dolphin_models(), value=get_dolphin_models()[0][1], allow_custom_value=True, label="Model")
56
- chat_model_info = gr.Markdown(value=get_dolphin_model_info(get_dolphin_models()[0][1]), label="Model info")
57
- with gr.Row():
58
- chat_mode = gr.Dropdown(choices=get_dolphin_sysprompt_mode(), value=get_dolphin_sysprompt_mode()[0], allow_custom_value=False, label="Mode")
59
- chat_lang = gr.Dropdown(choices=get_dolphin_languages(), value="English", allow_custom_value=True, label="Output language")
60
  with gr.Row():
61
  with gr.Group():
62
  output_text = gr.TextArea(label="Output tags", interactive=False, show_copy_button=True)
 
39
  chat_msg = gr.Textbox(show_label=False, placeholder="Input text in English, Japanese, or any other languages and press Enter or click Send.", scale=4)
40
  chat_submit = gr.Button("Send", scale=1)
41
  chat_clear = gr.Button("Clear", scale=1)
42
+ with gr.Accordion("Additional inputs", open=False):
43
+ chat_format = gr.Dropdown(choices=get_llm_formats(), value=get_dolphin_model_format(get_dolphin_models()[0][1]), label="Message format")
44
+ chat_sysmsg = gr.Textbox(value=get_dolphin_sysprompt(), label="System message")
45
+ chat_tokens = gr.Slider(minimum=1, maximum=4096, value=1024, step=1, label="Max tokens")
46
+ chat_temperature = gr.Slider(minimum=0.1, maximum=4.0, value=0.7, step=0.1, label="Temperature")
47
+ chat_topp = gr.Slider(minimum=0.1, maximum=1.0, value=0.95, step=0.05, label="Top-p")
48
+ chat_topk = gr.Slider(minimum=0, maximum=100, value=40, step=1, label="Top-k")
49
+ chat_rp = gr.Slider(minimum=0.0, maximum=2.0, value=1.1, step=0.1, label="Repetition penalty")
50
+ with gr.Accordion("Add models", open=True):
51
+ chat_add_text = gr.Textbox(label="URL or Repo ID", placeholder="http://huggingface.co/.../...gguf or author/model", lines=1)
52
+ chat_add_format = gr.Dropdown(choices=get_llm_formats(), value=get_llm_formats()[0], label="Message format")
53
+ chat_add_submit = gr.Button("Update lists of models")
54
+ with gr.Accordion("Modes", open=True):
55
+ chat_model = gr.Dropdown(choices=get_dolphin_models(), value=get_dolphin_models()[0][1], allow_custom_value=True, label="Model")
56
+ chat_model_info = gr.Markdown(value=get_dolphin_model_info(get_dolphin_models()[0][1]), label="Model info")
57
+ with gr.Row():
58
+ chat_mode = gr.Dropdown(choices=get_dolphin_sysprompt_mode(), value=get_dolphin_sysprompt_mode()[0], allow_custom_value=False, label="Mode")
59
+ chat_lang = gr.Dropdown(choices=get_dolphin_languages(), value="English", allow_custom_value=True, label="Output language")
60
  with gr.Row():
61
  with gr.Group():
62
  output_text = gr.TextArea(label="Output tags", interactive=False, show_copy_button=True)