John6666 commited on
Commit
31a1cdb
1 Parent(s): 7150ddb

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -37,10 +37,10 @@ MAX_SEED = np.iinfo(np.int32).max
37
  MAX_IMAGE_SIZE = 1216
38
 
39
  css = """
40
- #container { margin: 0 auto; !important; }
41
  #col-container { margin: 0 auto; !important; }
42
- #result { display: inline-block; max-width: 520px; max-height: 520px; width: 520px; height: 520px; align: center; margin: 0px auto; !important; }
43
- .lora { display: inline-block; min-width: 320px; !important; }
44
  #model-info { text-align: center; !important; }
45
  """
46
 
@@ -60,7 +60,7 @@ with gr.Blocks(css=css, fill_width=True, elem_id="container") as demo:
60
  with gr.Accordion("Advanced Settings", open=False):
61
  with gr.Row():
62
  negative_prompt = gr.Text(label="Negative prompt", lines=1, max_lines=6, placeholder="Enter a negative prompt",
63
- value="(low quality, worst quality:1.2), very displeasing, watermark, signature, ugly")
64
 
65
  with gr.Row():
66
  seed = gr.Slider(label="Seed", minimum=0, maximum=MAX_SEED, step=1, value=0)
@@ -150,12 +150,12 @@ with gr.Blocks(css=css, fill_width=True, elem_id="container") as demo:
150
  chat_model_info = gr.Markdown(value=get_dolphin_model_info(get_dolphin_models()[0][1]), label="Model info")
151
  chat_format = gr.Dropdown(choices=get_llm_formats(), value=get_dolphin_model_format(get_dolphin_models()[0][1]), label="Message format")
152
  with gr.Row():
153
- chat_sysmsg = gr.Textbox(value=get_dolphin_sysprompt(), label="System message")
154
  chat_tokens = gr.Slider(minimum=1, maximum=4096, value=512, step=1, label="Max tokens")
155
  chat_temperature = gr.Slider(minimum=0.1, maximum=4.0, value=0.7, step=0.1, label="Temperature")
156
  chat_topp = gr.Slider(minimum=0.1, maximum=1.0, value=0.95, step=0.05, label="Top-p")
157
  chat_topk = gr.Slider(minimum=0, maximum=100, value=40, step=1, label="Top-k")
158
  chat_rp = gr.Slider(minimum=0.0, maximum=2.0, value=1.1, step=0.1, label="Repetition penalty")
 
159
 
160
  examples = gr.Examples(
161
  examples = [
 
37
  MAX_IMAGE_SIZE = 1216
38
 
39
  css = """
40
+ #container { margin: 0 auto; !important; }
41
  #col-container { margin: 0 auto; !important; }
42
+ #result { display: block; max-width: 520px; max-height: 520px; width: 520px; height: 520px; margin: 0px auto; !important; }
43
+ .lora { display: block; min-width: 480px; !important; }
44
  #model-info { text-align: center; !important; }
45
  """
46
 
 
60
  with gr.Accordion("Advanced Settings", open=False):
61
  with gr.Row():
62
  negative_prompt = gr.Text(label="Negative prompt", lines=1, max_lines=6, placeholder="Enter a negative prompt",
63
+ value="(low quality, worst quality:1.2), very displeasing, watermark, signature, ugly")
64
 
65
  with gr.Row():
66
  seed = gr.Slider(label="Seed", minimum=0, maximum=MAX_SEED, step=1, value=0)
 
150
  chat_model_info = gr.Markdown(value=get_dolphin_model_info(get_dolphin_models()[0][1]), label="Model info")
151
  chat_format = gr.Dropdown(choices=get_llm_formats(), value=get_dolphin_model_format(get_dolphin_models()[0][1]), label="Message format")
152
  with gr.Row():
 
153
  chat_tokens = gr.Slider(minimum=1, maximum=4096, value=512, step=1, label="Max tokens")
154
  chat_temperature = gr.Slider(minimum=0.1, maximum=4.0, value=0.7, step=0.1, label="Temperature")
155
  chat_topp = gr.Slider(minimum=0.1, maximum=1.0, value=0.95, step=0.05, label="Top-p")
156
  chat_topk = gr.Slider(minimum=0, maximum=100, value=40, step=1, label="Top-k")
157
  chat_rp = gr.Slider(minimum=0.0, maximum=2.0, value=1.1, step=0.1, label="Repetition penalty")
158
+ chat_sysmsg = gr.Textbox(value=get_dolphin_sysprompt(), label="System message")
159
 
160
  examples = gr.Examples(
161
  examples = [