Update app.py
Browse files
app.py
CHANGED
|
@@ -46,11 +46,11 @@ demo = gr.ChatInterface(
|
|
| 46 |
fn=respond,
|
| 47 |
chatbot=gr.Chatbot(show_label=False, show_share_button=False,
|
| 48 |
show_copy_button=True, likeable=True, layout="panel"),
|
|
|
|
| 49 |
additional_inputs=[
|
| 50 |
-
gr.Textbox(value="You are a truthful and friendly Assistant.", label="System message"),
|
| 51 |
gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Max new tokens",interactive=True,
|
| 52 |
info="The maximum numbers of new tokens"),
|
| 53 |
-
gr.Slider(minimum=0.1, maximum=4.0, value=0.
|
| 54 |
info="Higher values produce more diverse outputs"),
|
| 55 |
gr.Slider(
|
| 56 |
minimum=0.1,
|
|
@@ -60,6 +60,7 @@ demo = gr.ChatInterface(
|
|
| 60 |
label="Top-p (nucleus sampling)",
|
| 61 |
interactive=True,
|
| 62 |
info="Higher values sample more low-probability tokens"),
|
|
|
|
| 63 |
],
|
| 64 |
examples=[
|
| 65 |
["Can you explain briefly to me what is the Python programming language?"],
|
|
|
|
| 46 |
fn=respond,
|
| 47 |
chatbot=gr.Chatbot(show_label=False, show_share_button=False,
|
| 48 |
show_copy_button=True, likeable=True, layout="panel"),
|
| 49 |
+
title="""Have a chat with LLama3 8B""",
|
| 50 |
additional_inputs=[
|
|
|
|
| 51 |
gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Max new tokens",interactive=True,
|
| 52 |
info="The maximum numbers of new tokens"),
|
| 53 |
+
gr.Slider(minimum=0.1, maximum=4.0, value=0.1, step=0.1, label="Temperature",interactive=True,
|
| 54 |
info="Higher values produce more diverse outputs"),
|
| 55 |
gr.Slider(
|
| 56 |
minimum=0.1,
|
|
|
|
| 60 |
label="Top-p (nucleus sampling)",
|
| 61 |
interactive=True,
|
| 62 |
info="Higher values sample more low-probability tokens"),
|
| 63 |
+
gr.Textbox(value="You are a truthful and friendly Assistant.", label="System message"),
|
| 64 |
],
|
| 65 |
examples=[
|
| 66 |
["Can you explain briefly to me what is the Python programming language?"],
|