Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -37,22 +37,26 @@ def respond(
|
|
37 |
|
38 |
|
39 |
# Add a title to the UI
|
40 |
-
title = "Corenet"
|
|
|
|
|
|
|
41 |
|
42 |
# Modify the pre-prompt to be editable but greyed out
|
43 |
pre_prompt = gr.Textbox(
|
44 |
-
value="You are a friendly Chatbot
|
45 |
label="Pre-prompt",
|
46 |
-
interactive=
|
47 |
placeholder="Type here...",
|
48 |
)
|
49 |
|
50 |
demo = gr.ChatInterface(
|
51 |
respond,
|
52 |
title=title,
|
|
|
53 |
additional_inputs=[
|
54 |
pre_prompt,
|
55 |
-
gr.Slider(minimum=256, maximum=8192, value=512, step=
|
56 |
gr.Slider(minimum=0.3, maximum=2.5, value=0.8, step=0.1, label="Creativity"),
|
57 |
gr.Slider(
|
58 |
minimum=0.1,
|
|
|
37 |
|
38 |
|
39 |
# Add a title to the UI
|
40 |
+
title = "<h1 style='text-align: center;'>Corenet</h1>"
|
41 |
+
|
42 |
+
# Add a description under the title
|
43 |
+
description = "<p style='text-align: center; font-size: 14px;'>The most advanced and lightweight LLM in its class, made by HX.</p>"
|
44 |
|
45 |
# Modify the pre-prompt to be editable but greyed out
|
46 |
pre_prompt = gr.Textbox(
|
47 |
+
value="You are a friendly Chatbot.",
|
48 |
label="Pre-prompt",
|
49 |
+
interactive=False,
|
50 |
placeholder="Type here...",
|
51 |
)
|
52 |
|
53 |
demo = gr.ChatInterface(
|
54 |
respond,
|
55 |
title=title,
|
56 |
+
description=description,
|
57 |
additional_inputs=[
|
58 |
pre_prompt,
|
59 |
+
gr.Slider(minimum=256, maximum=8192, value=512, step=64, label="Max Gen tokens"),
|
60 |
gr.Slider(minimum=0.3, maximum=2.5, value=0.8, step=0.1, label="Creativity"),
|
61 |
gr.Slider(
|
62 |
minimum=0.1,
|