Add liquid-glass chat UI
Browse files
app.py
CHANGED
@@ -1,7 +1,16 @@
|
|
|
|
1 |
import gradio as gr
|
2 |
|
3 |
-
|
4 |
-
return "Hello " + name + "!!"
|
5 |
|
6 |
-
|
7 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# app.py
|
2 |
import gradio as gr
|
3 |
|
4 |
+
# Load your models and functions here
|
|
|
5 |
|
6 |
+
# Define your Gradio interface
|
7 |
+
iface = gr.Interface(
|
8 |
+
fn=your_function,
|
9 |
+
inputs=gr.Textbox(placeholder="Type your prompt here..."),
|
10 |
+
outputs="text",
|
11 |
+
title="ARK-AI Chat",
|
12 |
+
description="ARK-AI: A savage, funny, chaotic-good AI assistant powered by multiple models.",
|
13 |
+
css="styles.css" # Link to your custom CSS
|
14 |
+
)
|
15 |
+
|
16 |
+
iface.launch()
|
style.css
ADDED
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/* styles.css */
|
2 |
+
body {
|
3 |
+
background: rgba(0, 0, 0, 0.1);
|
4 |
+
backdrop-filter: blur(10px);
|
5 |
+
font-family: 'Arial', sans-serif;
|
6 |
+
}
|
7 |
+
|
8 |
+
.gradio-container {
|
9 |
+
border-radius: 15px;
|
10 |
+
padding: 20px;
|
11 |
+
background: rgba(255, 255, 255, 0.2);
|
12 |
+
backdrop-filter: blur(15px);
|
13 |
+
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
14 |
+
}
|
15 |
+
|
16 |
+
.gradio-button {
|
17 |
+
background-color: #4CAF50;
|
18 |
+
color: white;
|
19 |
+
border-radius: 5px;
|
20 |
+
padding: 10px 20px;
|
21 |
+
border: none;
|
22 |
+
cursor: pointer;
|
23 |
+
}
|
24 |
+
|
25 |
+
.gradio-button:hover {
|
26 |
+
background-color: #45a049;
|
27 |
+
}
|
28 |
+
|
29 |
+
.gradio-textbox {
|
30 |
+
border-radius: 10px;
|
31 |
+
padding: 10px;
|
32 |
+
border: 1px solid #ccc;
|
33 |
+
width: 100%;
|
34 |
+
box-sizing: border-box;
|
35 |
+
}
|