jakewatson91 commited on
Commit
a91cd3d
·
unverified ·
1 Parent(s): 1114ebc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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, use_local_model], chat_history)
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)