Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -819,24 +819,7 @@ hr {
|
|
| 819 |
initial_display = convert_history_for_display(chat_history_store)
|
| 820 |
prefs = load_preferences()
|
| 821 |
|
| 822 |
-
with gr.Blocks(
|
| 823 |
-
title="β‘ NeuralChat β AI Assistant",
|
| 824 |
-
css=CUSTOM_CSS,
|
| 825 |
-
theme=gr.themes.Base(
|
| 826 |
-
primary_hue="cyan",
|
| 827 |
-
secondary_hue="emerald",
|
| 828 |
-
neutral_hue="slate",
|
| 829 |
-
font=[gr.themes.GoogleFont("Space Grotesk"), "sans-serif"],
|
| 830 |
-
font_mono=[gr.themes.GoogleFont("JetBrains Mono"), "monospace"],
|
| 831 |
-
).set(
|
| 832 |
-
body_background_fill="#0a0e1a",
|
| 833 |
-
block_background_fill="#141d35",
|
| 834 |
-
block_border_color="#1e2d50",
|
| 835 |
-
block_label_text_color="#8899bb",
|
| 836 |
-
input_background_fill="#0f1629",
|
| 837 |
-
button_primary_background_fill="*primary_500",
|
| 838 |
-
)
|
| 839 |
-
) as demo:
|
| 840 |
|
| 841 |
# ββ Hero Header ββ
|
| 842 |
gr.HTML("""
|
|
@@ -886,7 +869,6 @@ with gr.Blocks(
|
|
| 886 |
placeholder="<div style='text-align:center;color:#4a5a7a;padding:40px;font-family:Space Grotesk,sans-serif;'>π¬ Start a conversation β I remember everything.</div>",
|
| 887 |
elem_classes=["chatbot-wrap"],
|
| 888 |
show_label=False,
|
| 889 |
-
bubble_full_width=False,
|
| 890 |
),
|
| 891 |
textbox=gr.Textbox(
|
| 892 |
placeholder="Type a messageβ¦",
|
|
@@ -936,7 +918,6 @@ with gr.Blocks(
|
|
| 936 |
height=380,
|
| 937 |
placeholder="<div style='text-align:center;color:#4a5a7a;padding:40px;font-family:Space Grotesk,sans-serif;'>π Ask me about the Goodreads Best Books list!</div>",
|
| 938 |
show_label=False,
|
| 939 |
-
bubble_full_width=False,
|
| 940 |
),
|
| 941 |
textbox=gr.Textbox(
|
| 942 |
placeholder="e.g. Who wrote the top book?",
|
|
@@ -1033,7 +1014,6 @@ with gr.Blocks(
|
|
| 1033 |
height=360,
|
| 1034 |
placeholder="<div style='text-align:center;color:#4a5a7a;padding:40px;font-family:Space Grotesk,sans-serif;'>π₯ Load a transcript above, then ask anything!</div>",
|
| 1035 |
show_label=False,
|
| 1036 |
-
bubble_full_width=False,
|
| 1037 |
),
|
| 1038 |
textbox=gr.Textbox(
|
| 1039 |
placeholder="e.g. What is the main topic?",
|
|
@@ -1248,4 +1228,8 @@ Custom Rules β {p.get('custom_rules') or 'None'}
|
|
| 1248 |
</div>
|
| 1249 |
""")
|
| 1250 |
|
| 1251 |
-
demo.launch(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 819 |
initial_display = convert_history_for_display(chat_history_store)
|
| 820 |
prefs = load_preferences()
|
| 821 |
|
| 822 |
+
with gr.Blocks(title="β‘ NeuralChat β AI Assistant") as demo:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 823 |
|
| 824 |
# ββ Hero Header ββ
|
| 825 |
gr.HTML("""
|
|
|
|
| 869 |
placeholder="<div style='text-align:center;color:#4a5a7a;padding:40px;font-family:Space Grotesk,sans-serif;'>π¬ Start a conversation β I remember everything.</div>",
|
| 870 |
elem_classes=["chatbot-wrap"],
|
| 871 |
show_label=False,
|
|
|
|
| 872 |
),
|
| 873 |
textbox=gr.Textbox(
|
| 874 |
placeholder="Type a messageβ¦",
|
|
|
|
| 918 |
height=380,
|
| 919 |
placeholder="<div style='text-align:center;color:#4a5a7a;padding:40px;font-family:Space Grotesk,sans-serif;'>π Ask me about the Goodreads Best Books list!</div>",
|
| 920 |
show_label=False,
|
|
|
|
| 921 |
),
|
| 922 |
textbox=gr.Textbox(
|
| 923 |
placeholder="e.g. Who wrote the top book?",
|
|
|
|
| 1014 |
height=360,
|
| 1015 |
placeholder="<div style='text-align:center;color:#4a5a7a;padding:40px;font-family:Space Grotesk,sans-serif;'>π₯ Load a transcript above, then ask anything!</div>",
|
| 1016 |
show_label=False,
|
|
|
|
| 1017 |
),
|
| 1018 |
textbox=gr.Textbox(
|
| 1019 |
placeholder="e.g. What is the main topic?",
|
|
|
|
| 1228 |
</div>
|
| 1229 |
""")
|
| 1230 |
|
| 1231 |
+
demo.launch(
|
| 1232 |
+
share=False,
|
| 1233 |
+
inbrowser=True,
|
| 1234 |
+
css=CUSTOM_CSS,
|
| 1235 |
+
)
|