Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -106,7 +106,7 @@ with gr.Blocks() as app:
|
|
106 |
with gr.Column(scale=1):
|
107 |
stop_btn = gr.Button("Stop")
|
108 |
clear_btn = gr.Button("Clear")
|
109 |
-
client_choice = gr.Dropdown(label="Models", type='index', choices=
|
110 |
with gr.Column(scale=1):
|
111 |
rand = gr.Checkbox(label="Random Seed", value=True)
|
112 |
seed = gr.Slider(label="Seed", minimum=1, maximum=1111111111111111, step=1, value=rand_val)
|
@@ -122,7 +122,7 @@ with gr.Blocks() as app:
|
|
122 |
im_width = gr.Number(label="Width", value=500)
|
123 |
wait_time = gr.Number(label="Wait Time", value=3000)
|
124 |
theme = gr.Radio(label="Theme", choices=["light", "dark"], value="light")
|
125 |
-
chatblock = gr.Dropdown(label="Chatblocks", choices=
|
126 |
header = gr.Checkbox(label="Include header?", value=True)
|
127 |
rand.change(check_rand, inputs=[rand, seed], outputs=seed)
|
128 |
btn.click(chat_inf, inputs=[sys_inp, inp, chat_b, memory, client_choice, seed, temp, tokens, top_p, rep_p, chat_mem, custom_prompt], outputs=[chat_b, memory])
|
|
|
106 |
with gr.Column(scale=1):
|
107 |
stop_btn = gr.Button("Stop")
|
108 |
clear_btn = gr.Button("Clear")
|
109 |
+
client_choice = gr.Dropdown(label="Models", type='index', choices=models, value=models[0], interactive=True)
|
110 |
with gr.Column(scale=1):
|
111 |
rand = gr.Checkbox(label="Random Seed", value=True)
|
112 |
seed = gr.Slider(label="Seed", minimum=1, maximum=1111111111111111, step=1, value=rand_val)
|
|
|
122 |
im_width = gr.Number(label="Width", value=500)
|
123 |
wait_time = gr.Number(label="Wait Time", value=3000)
|
124 |
theme = gr.Radio(label="Theme", choices=["light", "dark"], value="light")
|
125 |
+
chatblock = gr.Dropdown(label="Chatblocks", choices=list(range(0, 21)), value=0, type="index")
|
126 |
header = gr.Checkbox(label="Include header?", value=True)
|
127 |
rand.change(check_rand, inputs=[rand, seed], outputs=seed)
|
128 |
btn.click(chat_inf, inputs=[sys_inp, inp, chat_b, memory, client_choice, seed, temp, tokens, top_p, rep_p, chat_mem, custom_prompt], outputs=[chat_b, memory])
|