Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -327,7 +327,21 @@ with gr.Blocks(
|
|
| 327 |
examples_per_page=40,
|
| 328 |
)
|
| 329 |
|
| 330 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 331 |
msg_submit_event = msg.submit(
|
| 332 |
# fn=conversation.user_turn,
|
| 333 |
fn=user,
|
|
@@ -390,4 +404,4 @@ else:
|
|
| 390 |
concurrency_count = 1
|
| 391 |
logger.info(f"{concurrency_count=}")
|
| 392 |
|
| 393 |
-
|
|
|
|
| 327 |
examples_per_page=40,
|
| 328 |
)
|
| 329 |
|
| 330 |
+
# with gr.Row():
|
| 331 |
+
with gr.Accordion("Disclaimer", open=False):
|
| 332 |
+
_ = Path(model_loc).name
|
| 333 |
+
gr.Markdown(
|
| 334 |
+
f"Disclaimer: Lauche - AI (POWERED BY LLAMA 2) can produce factually incorrect output, and should not be relied on to produce "
|
| 335 |
+
"factually accurate information. Lauche - AI (POWERED BY LLAMA 2) was trained on various public datasets; while great efforts "
|
| 336 |
+
"have been taken to clean the pretraining data, it is possible that this model could generate lewd, "
|
| 337 |
+
"biased, or otherwise offensive outputs."
|
| 338 |
+
" - - - "
|
| 339 |
+
"Our Impressum: https://lauche.eu/n-impressum"
|
| 340 |
+
" - - - "
|
| 341 |
+
"Visit this space on our website: ai-app.lauche.online",
|
| 342 |
+
elem_classes=["disclaimer"],
|
| 343 |
+
)
|
| 344 |
+
|
| 345 |
msg_submit_event = msg.submit(
|
| 346 |
# fn=conversation.user_turn,
|
| 347 |
fn=user,
|
|
|
|
| 404 |
concurrency_count = 1
|
| 405 |
logger.info(f"{concurrency_count=}")
|
| 406 |
|
| 407 |
+
block.queue(concurrency_count=concurrency_count, max_size=5).launch(debug=True)
|