Spaces:
Sleeping
Sleeping
Update ChuanhuChatbot.py
Browse files- ChuanhuChatbot.py +3 -3
ChuanhuChatbot.py
CHANGED
@@ -17,13 +17,13 @@ logging.getLogger("httpx").setLevel(logging.WARNING)
|
|
17 |
gr.Chatbot._postprocess_chat_messages = postprocess_chat_messages
|
18 |
gr.Chatbot.postprocess = postprocess
|
19 |
|
20 |
-
|
21 |
-
|
22 |
|
23 |
def create_new_model():
|
24 |
return get_model(model_name = MODELS[DEFAULT_MODEL], access_key = my_api_key)[0]
|
25 |
|
26 |
-
with gr.Blocks(theme=small_and_beautiful_theme) as demo:
|
27 |
user_name = gr.State("")
|
28 |
promptTemplates = gr.State(load_template(get_template_names(plain=True)[0], mode=2))
|
29 |
user_question = gr.State("")
|
|
|
17 |
gr.Chatbot._postprocess_chat_messages = postprocess_chat_messages
|
18 |
gr.Chatbot.postprocess = postprocess
|
19 |
|
20 |
+
with open("assets/custom.css", "r", encoding="utf-8") as f:
|
21 |
+
customCSS = f.read()
|
22 |
|
23 |
def create_new_model():
|
24 |
return get_model(model_name = MODELS[DEFAULT_MODEL], access_key = my_api_key)[0]
|
25 |
|
26 |
+
with gr.Blocks(css=customCSS, theme=small_and_beautiful_theme) as demo:
|
27 |
user_name = gr.State("")
|
28 |
promptTemplates = gr.State(load_template(get_template_names(plain=True)[0], mode=2))
|
29 |
user_question = gr.State("")
|