Spaces:
Running
Running
MekkCyber
commited on
Commit
·
2823cfe
1
Parent(s):
c04d35a
update
Browse files
README.md
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
---
|
2 |
title: BitNet.cpp
|
3 |
emoji: 💻
|
4 |
-
colorFrom:
|
5 |
-
colorTo:
|
6 |
sdk: docker
|
7 |
app_file: app.py
|
8 |
app_port: 7860
|
|
|
1 |
---
|
2 |
title: BitNet.cpp
|
3 |
emoji: 💻
|
4 |
+
colorFrom: pink
|
5 |
+
colorTo: yellow
|
6 |
sdk: docker
|
7 |
app_file: app.py
|
8 |
app_port: 7860
|
app.py
CHANGED
@@ -90,13 +90,53 @@ def run_transformers(model_name, input_text, num_tokens):
|
|
90 |
# Gradio Interface
|
91 |
def interface():
|
92 |
with gr.Blocks(css="""
|
93 |
-
.gr-button {
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
100 |
""") as demo:
|
101 |
|
102 |
# Header
|
|
|
90 |
# Gradio Interface
|
91 |
def interface():
|
92 |
with gr.Blocks(css="""
|
93 |
+
.gr-button {
|
94 |
+
background-color: #FF4081; /* Bright pink */
|
95 |
+
color: white;
|
96 |
+
border-radius: 8px;
|
97 |
+
padding: 8px 12px;
|
98 |
+
border: 2px solid #FFEB3B; /* Bright yellow border */
|
99 |
+
font-weight: bold;
|
100 |
+
}
|
101 |
+
.gr-button:hover {
|
102 |
+
background-color: #F50057; /* Darker pink for hover effect */
|
103 |
+
border-color: #FFC107; /* Darker yellow on hover */
|
104 |
+
}
|
105 |
+
|
106 |
+
/* Header styling */
|
107 |
+
#header {
|
108 |
+
font-family: 'Arial', sans-serif;
|
109 |
+
color: #D500F9; /* Vivid purple */
|
110 |
+
background-color: #FFEB3B; /* Bright yellow background */
|
111 |
+
padding: 20px;
|
112 |
+
border-radius: 10px;
|
113 |
+
text-align: center;
|
114 |
+
}
|
115 |
+
|
116 |
+
/* Container styling */
|
117 |
+
.container {
|
118 |
+
background-color: #FFF59D; /* Light yellow */
|
119 |
+
border-radius: 10px;
|
120 |
+
padding: 20px;
|
121 |
+
margin: 15px 0;
|
122 |
+
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Soft shadow */
|
123 |
+
}
|
124 |
+
.container h2 {
|
125 |
+
color: #FF4081; /* Matching bright pink */
|
126 |
+
text-align: center;
|
127 |
+
}
|
128 |
+
|
129 |
+
/* Center alignment */
|
130 |
+
.center {
|
131 |
+
text-align: center;
|
132 |
+
}
|
133 |
+
|
134 |
+
/* Center button alignment */
|
135 |
+
.center-button {
|
136 |
+
display: flex;
|
137 |
+
justify-content: center;
|
138 |
+
margin: 10px;
|
139 |
+
}
|
140 |
""") as demo:
|
141 |
|
142 |
# Header
|