ffreemt commited on
Commit
fd3bac5
1 Parent(s): 9eccef7
Files changed (1) hide show
  1. app.py +13 -7
app.py CHANGED
@@ -261,10 +261,9 @@ with gr.Blocks(
261
  gr.Markdown(
262
  """<h4><center>mosaicml mpt-30b-chat</center></h4>
263
 
264
- This demo is of [MPT-30B-Chat](https://huggingface.co/mosaicml/mpt-30b-ch a t). It is based on [MPT-30B](https://huggingface.co/mosaicml/mpt-30b) fine-tuned on approximately 300,000 turns of high-quality conversations, and is powered by [MosaicML Inference](https://www.mosaicml.com/inference).
265
-
266
- If you're interested in [training](https://www.mosaicml.com/training) and [deploying](https://www.mosaicml.com/inference) your own MPT or LLMs, [sign up](https://forms.mosaicml.com/demo?utm_source=huggingface&utm_medium=referral&utm_campaign=mpt-30b) for MosaicML platform.
267
 
 
268
  """,
269
  elem_classes="intro"
270
  )
@@ -280,9 +279,9 @@ with gr.Blocks(
280
  with gr.Column():
281
  with gr.Row():
282
  submit = gr.Button("Submit")
283
- stop = gr.Button("Stop")
284
- clear = gr.Button("Clear")
285
- with gr.Row():
286
  with gr.Accordion("Advanced Options:", open=False):
287
  with gr.Row():
288
  with gr.Column(scale=2):
@@ -303,7 +302,7 @@ with gr.Blocks(
303
  "biased, or otherwise offensive outputs.",
304
  elem_classes=["disclaimer"],
305
  )
306
- with gr.Row():
307
  gr.Markdown(
308
  "[Privacy policy](https://gist.github.com/samhavens/c29c68cdcd420a9aa0202d0839876dac)",
309
  elem_classes=["disclaimer"],
@@ -367,5 +366,12 @@ with gr.Blocks(
367
  outputs=[msg, chatbot],
368
  queue=True,
369
  )
 
 
 
 
 
 
 
370
 
371
  demo.queue(max_size=36, concurrency_count=14).launch(debug=True)
 
261
  gr.Markdown(
262
  """<h4><center>mosaicml mpt-30b-chat</center></h4>
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
  )
 
279
  with gr.Column():
280
  with gr.Row():
281
  submit = gr.Button("Submit")
282
+ stop = gr.Button("Stop", visible=False)
283
+ clear = gr.Button("Clear", visible=False)
284
+ with gr.Row(visible=False):
285
  with gr.Accordion("Advanced Options:", open=False):
286
  with gr.Row():
287
  with gr.Column(scale=2):
 
302
  "biased, or otherwise offensive outputs.",
303
  elem_classes=["disclaimer"],
304
  )
305
+ with gr.Row(visible=False):
306
  gr.Markdown(
307
  "[Privacy policy](https://gist.github.com/samhavens/c29c68cdcd420a9aa0202d0839876dac)",
308
  elem_classes=["disclaimer"],
 
366
  outputs=[msg, chatbot],
367
  queue=True,
368
  )
369
+ submit.click(
370
+ # fn=conversation.user_turn,
371
+ fn=predict0,
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)