Spaces:
Running
on
Zero
Running
on
Zero
Upload 2 files
Browse files- app.py +4 -3
- llmdolphin.py +1 -1
app.py
CHANGED
@@ -49,13 +49,14 @@ with gr.Blocks(theme="NoCrypt/miku@>=1.2.2", css="") as app:
|
|
49 |
chat_topp = gr.Slider(minimum=0.1, maximum=1.0, value=0.95, step=0.05, label="Top-p")
|
50 |
chat_topk = gr.Slider(minimum=0, maximum=100, value=40, step=1, label="Top-k")
|
51 |
chat_rp = gr.Slider(minimum=0.0, maximum=2.0, value=1.1, step=0.1, label="Repetition penalty")
|
52 |
-
with gr.Row():
|
53 |
-
chat_mode = gr.Dropdown(choices=get_dolphin_sysprompt_mode(), value=get_dolphin_sysprompt_mode()[0], allow_custom_value=False, label="Mode")
|
54 |
-
chat_lang = gr.Dropdown(choices=get_dolphin_languages(), value="English", allow_custom_value=True, label="Output language")
|
55 |
with gr.Accordion("Add models", open=False):
|
56 |
chat_add_text = gr.Textbox(label="URL or Repo ID", placeholder="http://huggingface.co/.../...gguf or author/model", lines=1)
|
57 |
chat_add_format = gr.Dropdown(choices=get_llm_formats(), value=get_llm_formats()[0], label="Message format")
|
58 |
chat_add_submit = gr.Button("Update lists of models")
|
|
|
|
|
|
|
|
|
59 |
|
60 |
with gr.Column(scale=1):
|
61 |
with gr.Row():
|
|
|
49 |
chat_topp = gr.Slider(minimum=0.1, maximum=1.0, value=0.95, step=0.05, label="Top-p")
|
50 |
chat_topk = gr.Slider(minimum=0, maximum=100, value=40, step=1, label="Top-k")
|
51 |
chat_rp = gr.Slider(minimum=0.0, maximum=2.0, value=1.1, step=0.1, label="Repetition penalty")
|
|
|
|
|
|
|
52 |
with gr.Accordion("Add models", open=False):
|
53 |
chat_add_text = gr.Textbox(label="URL or Repo ID", placeholder="http://huggingface.co/.../...gguf or author/model", lines=1)
|
54 |
chat_add_format = gr.Dropdown(choices=get_llm_formats(), value=get_llm_formats()[0], label="Message format")
|
55 |
chat_add_submit = gr.Button("Update lists of models")
|
56 |
+
with gr.Accordion("Modes", open=True):
|
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 |
|
61 |
with gr.Column(scale=1):
|
62 |
with gr.Row():
|
llmdolphin.py
CHANGED
@@ -256,7 +256,7 @@ The message must have the following [Tags] generated in strict accordance with t
|
|
256 |
Based on these Rules, please tell me message within 40 Tags that can generate an image for the following themes,
|
257 |
then write the character's long actor's line composed of one's voices and moaning and voices in thought, based on the story you have assembled, in <LANGUAGE> only,
|
258 |
enclosed in //VOICEBEGIN//:// and //://VOICEEND//, then describe the message you've generated in short, in <LANGUAGE> only.:
|
259 |
-
''', "Chat with LLM": "You are a helpful AI assistant."}
|
260 |
|
261 |
|
262 |
def get_dolphin_sysprompt():
|
|
|
256 |
Based on these Rules, please tell me message within 40 Tags that can generate an image for the following themes,
|
257 |
then write the character's long actor's line composed of one's voices and moaning and voices in thought, based on the story you have assembled, in <LANGUAGE> only,
|
258 |
enclosed in //VOICEBEGIN//:// and //://VOICEEND//, then describe the message you've generated in short, in <LANGUAGE> only.:
|
259 |
+
''', "Chat with LLM": r"You are a helpful AI assistant. Respond in <LANGUAGE>."}
|
260 |
|
261 |
|
262 |
def get_dolphin_sysprompt():
|