Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -13,13 +13,11 @@ avatar_base64 = load_image_as_base64("avatar.png")
|
|
| 13 |
|
| 14 |
# ------------------- Chat logic -------------------
|
| 15 |
def chat(user_input, history=[]):
|
| 16 |
-
history.append(("B岷", user_input))
|
| 17 |
response = get_chat_response(user_input)
|
| 18 |
-
history.append(("Kumiko 馃幒", response))
|
| 19 |
return history, history
|
| 20 |
|
| 21 |
# ------------------- Gradio UI -------------------
|
| 22 |
-
with gr.Blocks(theme="
|
| 23 |
gr.Markdown(f"""
|
| 24 |
<div style="text-align:center;">
|
| 25 |
<h1>馃幒 Kumiko v1.5 Assistant 馃摨</h1>
|
|
|
|
| 13 |
|
| 14 |
# ------------------- Chat logic -------------------
|
| 15 |
def chat(user_input, history=[]):
|
|
|
|
| 16 |
response = get_chat_response(user_input)
|
|
|
|
| 17 |
return history, history
|
| 18 |
|
| 19 |
# ------------------- Gradio UI -------------------
|
| 20 |
+
with gr.Blocks(theme="shivi/calm_seafoam") as demo:
|
| 21 |
gr.Markdown(f"""
|
| 22 |
<div style="text-align:center;">
|
| 23 |
<h1>馃幒 Kumiko v1.5 Assistant 馃摨</h1>
|