Spaces:
Build error
Build error
jakewatson91 commited on
Update app.py
Browse files
app.py
CHANGED
|
@@ -45,7 +45,7 @@ def respond(
|
|
| 45 |
max_tokens=256,
|
| 46 |
temperature=0.7,
|
| 47 |
top_p=0.95,
|
| 48 |
-
use_local_model=False,
|
| 49 |
):
|
| 50 |
global stop_inference, last_activity_time, message_count
|
| 51 |
stop_inference = False # Reset cancellation flag
|
|
@@ -172,7 +172,7 @@ with gr.Blocks(css=custom_css) as demo:
|
|
| 172 |
cancel_button = gr.Button("Cancel Inference", variant="danger")
|
| 173 |
|
| 174 |
# Submit the input and generate response
|
| 175 |
-
user_input.submit(respond, [user_input, chat_history, system_message_state
|
| 176 |
|
| 177 |
# Cancel inference button
|
| 178 |
cancel_button.click(cancel_inference)
|
|
|
|
| 45 |
max_tokens=256,
|
| 46 |
temperature=0.7,
|
| 47 |
top_p=0.95,
|
| 48 |
+
# use_local_model=False,
|
| 49 |
):
|
| 50 |
global stop_inference, last_activity_time, message_count
|
| 51 |
stop_inference = False # Reset cancellation flag
|
|
|
|
| 172 |
cancel_button = gr.Button("Cancel Inference", variant="danger")
|
| 173 |
|
| 174 |
# Submit the input and generate response
|
| 175 |
+
user_input.submit(respond, [user_input, chat_history, system_message_state], chat_history) #, use_local_model --removed
|
| 176 |
|
| 177 |
# Cancel inference button
|
| 178 |
cancel_button.click(cancel_inference)
|