Spaces:
Runtime error
Runtime error
why won't this work :(
Browse files
app.py
CHANGED
|
@@ -16,7 +16,7 @@ def respond(
|
|
| 16 |
history: list[tuple[str, str]],
|
| 17 |
system_message="You are a friendly Chatbot.",
|
| 18 |
max_tokens=512,
|
| 19 |
-
temperature=
|
| 20 |
top_p=0.95,
|
| 21 |
use_local_model=False,
|
| 22 |
):
|
|
@@ -143,10 +143,10 @@ with gr.Blocks(css=custom_css) as demo:
|
|
| 143 |
|
| 144 |
with gr.Row():
|
| 145 |
system_message = gr.Dropdown(
|
| 146 |
-
choices=["You are a friendly Chatbot that responds
|
| 147 |
-
"You are a friendly
|
| 148 |
-
"You are a friendly
|
| 149 |
-
|
| 150 |
label="System message",
|
| 151 |
interactive=True
|
| 152 |
)
|
|
@@ -157,7 +157,7 @@ with gr.Blocks(css=custom_css) as demo:
|
|
| 157 |
|
| 158 |
with gr.Row():
|
| 159 |
max_tokens = gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Max new tokens")
|
| 160 |
-
temperature = gr.Slider(minimum=0.
|
| 161 |
top_p = gr.Slider(minimum=0.1, maximum=1.0, value=0.95, step=0.05, label="Top-p (nucleus sampling)")
|
| 162 |
|
| 163 |
chat_history = gr.Chatbot(label="Chat")
|
|
|
|
| 16 |
history: list[tuple[str, str]],
|
| 17 |
system_message="You are a friendly Chatbot.",
|
| 18 |
max_tokens=512,
|
| 19 |
+
temperature=1.5,
|
| 20 |
top_p=0.95,
|
| 21 |
use_local_model=False,
|
| 22 |
):
|
|
|
|
| 143 |
|
| 144 |
with gr.Row():
|
| 145 |
system_message = gr.Dropdown(
|
| 146 |
+
choices=["You are a friendly Chatbot that responds with the vocabulary of the seven year old.",
|
| 147 |
+
"You are a friendly Chatbot. Please respond at a level that middle schoolers can understand",
|
| 148 |
+
"You are a friendly high school Chatbot who responds at a level the average person can understand.",
|
| 149 |
+
"You are a friendly Chatbot that uses a very advanced, college-level vocabulary in your responses."],
|
| 150 |
label="System message",
|
| 151 |
interactive=True
|
| 152 |
)
|
|
|
|
| 157 |
|
| 158 |
with gr.Row():
|
| 159 |
max_tokens = gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Max new tokens")
|
| 160 |
+
temperature = gr.Slider(minimum=0.5, maximum=4.0, value=0.7, step=0.1, label="Temperature")
|
| 161 |
top_p = gr.Slider(minimum=0.1, maximum=1.0, value=0.95, step=0.05, label="Top-p (nucleus sampling)")
|
| 162 |
|
| 163 |
chat_history = gr.Chatbot(label="Chat")
|