ffreemt commited on
Commit
22850a8
1 Parent(s): 6d6095f
Files changed (1) hide show
  1. app.py +6 -2
app.py CHANGED
@@ -263,7 +263,7 @@ with gr.Blocks(
263
 
264
  This demo is of [TheBloke/mpt-30B-chat-GGML](TheBloke/mpt-30B-chat-GGML.)
265
 
266
- It takes about 20 seconds to get a response.
267
  """,
268
  elem_classes="intro"
269
  )
@@ -294,7 +294,8 @@ with gr.Blocks(
294
  with gr.Row():
295
  change = gr.Button("Change System Prompt")
296
  reset = gr.Button("Reset System Prompt")
297
- with gr.Row():
 
298
  gr.Markdown(
299
  "Disclaimer: MPT-30B can produce factually incorrect output, and should not be relied on to produce "
300
  "factually accurate information. MPT-30B was trained on various public datasets; while great efforts "
@@ -365,6 +366,8 @@ with gr.Blocks(
365
  inputs=[msg, chatbot],
366
  outputs=[msg, chatbot],
367
  queue=True,
 
 
368
  )
369
  submit.click(
370
  # fn=conversation.user_turn,
@@ -372,6 +375,7 @@ with gr.Blocks(
372
  inputs=[msg, chatbot],
373
  outputs=[msg, chatbot],
374
  queue=True,
 
375
  )
376
 
377
  demo.queue(max_size=36, concurrency_count=14).launch(debug=True)
 
263
 
264
  This demo is of [TheBloke/mpt-30B-chat-GGML](TheBloke/mpt-30B-chat-GGML.)
265
 
266
+ It takes about >40 seconds to get a response.
267
  """,
268
  elem_classes="intro"
269
  )
 
294
  with gr.Row():
295
  change = gr.Button("Change System Prompt")
296
  reset = gr.Button("Reset System Prompt")
297
+ # with gr.Row():
298
+ with gr.Accordion("Disclaimer", open=False):
299
  gr.Markdown(
300
  "Disclaimer: MPT-30B can produce factually incorrect output, and should not be relied on to produce "
301
  "factually accurate information. MPT-30B was trained on various public datasets; while great efforts "
 
366
  inputs=[msg, chatbot],
367
  outputs=[msg, chatbot],
368
  queue=True,
369
+ show_progress="full",
370
+ api_name="predict"
371
  )
372
  submit.click(
373
  # fn=conversation.user_turn,
 
375
  inputs=[msg, chatbot],
376
  outputs=[msg, chatbot],
377
  queue=True,
378
+ show_progress="full",
379
  )
380
 
381
  demo.queue(max_size=36, concurrency_count=14).launch(debug=True)