Spaces:
Running
Running
salomonsky
commited on
Commit
•
e82ea75
1
Parent(s):
960e470
Update app.py
Browse files
app.py
CHANGED
@@ -285,14 +285,6 @@ css = """
|
|
285 |
.xsmall {font-size: x-small;}
|
286 |
"""
|
287 |
etext = """In America, where cars are an important part of the national psyche, a decade ago people had suddenly started to drive less, which had not happened since the oil shocks of the 1970s. """
|
288 |
-
examples_list = [
|
289 |
-
["What NFL team won the Super Bowl in the year Justin Bieber was born?"],
|
290 |
-
[
|
291 |
-
"What NFL team won the Super Bowl in the year Justin Bieber was born? Think step by step."
|
292 |
-
],
|
293 |
-
["How to pick a lock? Provide detailed steps."],
|
294 |
-
|
295 |
-
]
|
296 |
|
297 |
logger.info("start block")
|
298 |
|
@@ -352,28 +344,7 @@ with gr.Blocks(
|
|
352 |
change = gr.Button("Change System Prompt")
|
353 |
reset = gr.Button("Reset System Prompt")
|
354 |
|
355 |
-
|
356 |
-
examples = gr.Examples(
|
357 |
-
examples=examples_list,
|
358 |
-
inputs=[msg],
|
359 |
-
examples_per_page=40,
|
360 |
-
)
|
361 |
-
|
362 |
-
# with gr.Row():
|
363 |
-
with gr.Accordion("Disclaimer", open=False):
|
364 |
-
_ = Path(model_loc).name
|
365 |
-
gr.Markdown(
|
366 |
-
f"Disclaimer: Lauche - AI (POWERED BY LLAMA 2) can produce factually incorrect output, and should not be relied on to produce "
|
367 |
-
"factually accurate information. Lauche - AI (POWERED BY LLAMA 2) was trained on various public datasets; while great efforts "
|
368 |
-
"have been taken to clean the pretraining data, it is possible that this model could generate lewd, "
|
369 |
-
"biased, or otherwise offensive outputs."
|
370 |
-
" - - - "
|
371 |
-
"Our Impressum: https://lauche.eu/n-impressum"
|
372 |
-
" - - - "
|
373 |
-
"Visit this space on our website: ai-app.lauche.online",
|
374 |
-
elem_classes=["disclaimer"],
|
375 |
-
)
|
376 |
-
|
377 |
msg_submit_event = msg.submit(
|
378 |
# fn=conversation.user_turn,
|
379 |
fn=user,
|
|
|
285 |
.xsmall {font-size: x-small;}
|
286 |
"""
|
287 |
etext = """In America, where cars are an important part of the national psyche, a decade ago people had suddenly started to drive less, which had not happened since the oil shocks of the 1970s. """
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
288 |
|
289 |
logger.info("start block")
|
290 |
|
|
|
344 |
change = gr.Button("Change System Prompt")
|
345 |
reset = gr.Button("Reset System Prompt")
|
346 |
|
347 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
348 |
msg_submit_event = msg.submit(
|
349 |
# fn=conversation.user_turn,
|
350 |
fn=user,
|