Spaces:
Build error
Build error
JCai
commited on
Commit
·
0487128
1
Parent(s):
8a81350
hide hyperparameters
Browse files
app.py
CHANGED
|
@@ -228,10 +228,10 @@ with gr.Blocks(css=custom_css) as demo:
|
|
| 228 |
cancel_button = gr.Button("Cancel Inference", variant="danger")
|
| 229 |
|
| 230 |
# Adjusted to ensure history is maintained and passed correctly
|
| 231 |
-
max_tokens
|
| 232 |
-
|
| 233 |
-
|
| 234 |
-
|
| 235 |
|
| 236 |
cancel_button.click(cancel_inference)
|
| 237 |
|
|
|
|
| 228 |
cancel_button = gr.Button("Cancel Inference", variant="danger")
|
| 229 |
|
| 230 |
# Adjusted to ensure history is maintained and passed correctly
|
| 231 |
+
# user_input.submit(respond, [user_input, chat_history, system_message, max_tokens, temperature, top_p, use_local_model], chat_history)
|
| 232 |
+
user_input.submit(respond,
|
| 233 |
+
[user_input, chat_history, system_message, 512, 0.8, 0.95, use_local_model],
|
| 234 |
+
chat_history)
|
| 235 |
|
| 236 |
cancel_button.click(cancel_inference)
|
| 237 |
|