freddyaboulton HF Staff commited on
Commit
1e0a351
·
1 Parent(s): 6a84ce9
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -220,12 +220,12 @@ with gr.Blocks() as demo:
220
  server_rtc_configuration=get_hf_turn_credentials(ttl=3_600 * 24 * 30)
221
  )
222
  with gr.Accordion(label="Additional Inputs"):
223
- sp = gr.Textbox(label="System Prompt", value="You are a helpful assistant."),
224
  slider = gr.Slider(label="Max New Tokens", minimum=100, maximum=2000, step=10, value=700)
225
  image = gr.Image()
226
 
227
  webrtc.stream(
228
- ReplyOnPause(response), # type: ignore
229
  inputs=[webrtc, chatbot, sp, slider, image],
230
  outputs=[chatbot],
231
  concurrency_limit=100,
 
220
  server_rtc_configuration=get_hf_turn_credentials(ttl=3_600 * 24 * 30)
221
  )
222
  with gr.Accordion(label="Additional Inputs"):
223
+ sp = gr.Textbox(label="System Prompt", value="You are a helpful assistant.")
224
  slider = gr.Slider(label="Max New Tokens", minimum=100, maximum=2000, step=10, value=700)
225
  image = gr.Image()
226
 
227
  webrtc.stream(
228
+ ReplyOnPause(generate), # type: ignore
229
  inputs=[webrtc, chatbot, sp, slider, image],
230
  outputs=[chatbot],
231
  concurrency_limit=100,