Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -299,19 +299,6 @@ with gr.Blocks(
|
|
299 |
theme=gr.themes.Soft(text_size="sm", spacing_size="sm"),
|
300 |
css=css,
|
301 |
) as block:
|
302 |
-
# buff_var = gr.State("")
|
303 |
-
with gr.Accordion("🎈 Info", open=False):
|
304 |
-
# gr.HTML(
|
305 |
-
# """<center><a href="https://huggingface.co/spaces/mikeee/mpt-30b-chat?duplicate=true"><img src="https://bit.ly/3gLdBN6" alt="Duplicate"></a> and spin a CPU UPGRADE to avoid the queue</center>"""
|
306 |
-
# )
|
307 |
-
gr.Markdown(
|
308 |
-
f"""<h5><center>{Path(model_loc).name}</center></h4>
|
309 |
-
Most examples are meant for another model.
|
310 |
-
You probably should try to test
|
311 |
-
some related prompts.""",
|
312 |
-
elem_classes="xsmall",
|
313 |
-
)
|
314 |
-
|
315 |
# chatbot = gr.Chatbot().style(height=700) # 500
|
316 |
chatbot = gr.Chatbot(height=500)
|
317 |
|
@@ -349,18 +336,7 @@ with gr.Blocks(
|
|
349 |
with gr.Row():
|
350 |
change = gr.Button("Change System Prompt")
|
351 |
reset = gr.Button("Reset System Prompt")
|
352 |
-
|
353 |
-
# with gr.Row():
|
354 |
-
with gr.Accordion("Disclaimer", open=False):
|
355 |
-
_ = Path(model_loc).name
|
356 |
-
gr.Markdown(
|
357 |
-
f"Disclaimer: {_} can produce factually incorrect output, and should not be relied on to produce "
|
358 |
-
"factually accurate information. {_} was trained on various public datasets; while great efforts "
|
359 |
-
"have been taken to clean the pretraining data, it is possible that this model could generate lewd, "
|
360 |
-
"biased, or otherwise offensive outputs.",
|
361 |
-
elem_classes=["disclaimer"],
|
362 |
-
)
|
363 |
-
|
364 |
msg_submit_event = msg.submit(
|
365 |
# fn=conversation.user_turn,
|
366 |
fn=user,
|
|
|
299 |
theme=gr.themes.Soft(text_size="sm", spacing_size="sm"),
|
300 |
css=css,
|
301 |
) as block:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
302 |
# chatbot = gr.Chatbot().style(height=700) # 500
|
303 |
chatbot = gr.Chatbot(height=500)
|
304 |
|
|
|
336 |
with gr.Row():
|
337 |
change = gr.Button("Change System Prompt")
|
338 |
reset = gr.Button("Reset System Prompt")
|
339 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
340 |
msg_submit_event = msg.submit(
|
341 |
# fn=conversation.user_turn,
|
342 |
fn=user,
|