Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -156,11 +156,11 @@ with gr.Blocks(css=".chatbox {height: 400px; overflow-y: auto; border: 1px solid
|
|
| 156 |
history_state = gr.State([])
|
| 157 |
last_message_state = gr.State("")
|
| 158 |
|
| 159 |
-
def user_interaction(message,
|
| 160 |
-
history, assistant_reply = respond(message, api_key,
|
| 161 |
return render_message(history), history, "", message
|
| 162 |
|
| 163 |
-
def regenerate_response(history, last_message,
|
| 164 |
return "", []
|
| 165 |
|
| 166 |
def clear_history(api_key):
|
|
|
|
| 156 |
history_state = gr.State([])
|
| 157 |
last_message_state = gr.State("")
|
| 158 |
|
| 159 |
+
def user_interaction(message, history, api_key, max_tokens, top_p, temperature):
|
| 160 |
+
history, assistant_reply = respond(message, api_key, max_tokens, top_p, temperature)
|
| 161 |
return render_message(history), history, "", message
|
| 162 |
|
| 163 |
+
def regenerate_response(history, last_message, max_tokens, top_p, temperature):
|
| 164 |
return "", []
|
| 165 |
|
| 166 |
def clear_history(api_key):
|