Spaces:
Sleeping
Sleeping
peterpeter8585
commited on
Commit
•
c8585fb
1
Parent(s):
4bb0518
Update app.py
Browse files
app.py
CHANGED
@@ -390,6 +390,22 @@ ae = gr.ChatInterface(
|
|
390 |
gr.Textbox(label="Pleas type in the password.Or, it will not work if you ask.")
|
391 |
],
|
392 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
393 |
ac=gr.ChatInterface(
|
394 |
respond3,
|
395 |
additional_inputs=[
|
|
|
390 |
gr.Textbox(label="Pleas type in the password.Or, it will not work if you ask.")
|
391 |
],
|
392 |
)
|
393 |
+
aa=gr.ChatInterface(
|
394 |
+
respond1,
|
395 |
+
additional_inputs=[
|
396 |
+
gr.Textbox(value="You are a helpful assistant.", label="System message", interactive=True,)
|
397 |
+
gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Max new tokens"),
|
398 |
+
gr.Slider(minimum=0.1, maximum=4.0, value=0.7, step=0.1, label="Temperature"),
|
399 |
+
gr.Slider(
|
400 |
+
minimum=0.1,
|
401 |
+
maximum=1.0,
|
402 |
+
value=0.95,
|
403 |
+
step=0.05,
|
404 |
+
label="Top-p (nucleus sampling)",
|
405 |
+
),
|
406 |
+
|
407 |
+
],
|
408 |
+
)
|
409 |
ac=gr.ChatInterface(
|
410 |
respond3,
|
411 |
additional_inputs=[
|