MekkCyber commited on
Commit
294b6b7
·
1 Parent(s): 2823cfe
Files changed (2) hide show
  1. README.md +2 -2
  2. app.py +23 -18
README.md CHANGED
@@ -1,8 +1,8 @@
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
 
1
  ---
2
  title: BitNet.cpp
3
  emoji: 💻
4
+ colorFrom: blue
5
+ colorTo: gray
6
  sdk: docker
7
  app_file: app.py
8
  app_port: 7860
app.py CHANGED
@@ -90,43 +90,48 @@ def run_transformers(model_name, input_text, num_tokens):
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
  }
 
90
  # Gradio Interface
91
  def interface():
92
  with gr.Blocks(css="""
93
+ body {
94
+ background-color: #F7F9FC; /* Light gray for a clean look */
95
+ color: #333333; /* Dark gray for text for easy readability */
96
+ font-family: 'Arial', sans-serif;
97
+ }
98
+
99
+ /* Button styling */
100
+ .gr-button {
101
+ background-color: #2196F3; /* Bright blue */
102
  color: white;
103
+ border-radius: 6px;
104
+ padding: 10px 15px;
105
+ border: 1px solid #1976D2; /* Slightly darker blue for border */
106
  font-weight: bold;
107
  }
108
  .gr-button:hover {
109
+ background-color: #1976D2; /* Darker blue on hover */
 
110
  }
111
 
112
  /* Header styling */
113
  #header {
114
+ color: #333333; /* Dark gray for better contrast on light background */
115
+ background-color: #E3F2FD; /* Very light blue background */
 
116
  padding: 20px;
117
+ border-radius: 8px;
118
  text-align: center;
119
  }
120
 
121
+ /* Container styling for sections */
122
  .container {
123
+ background-color: #FFFFFF; /* White for a clean container look */
124
+ border-radius: 8px;
125
  padding: 20px;
126
+ margin: 20px 0;
127
+ box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Soft shadow for depth */
128
  }
129
  .container h2 {
130
+ color: #2196F3; /* Bright blue for subheaders */
131
  text-align: center;
132
  }
133
 
134
+ /* Center alignment for UI components */
135
  .center {
136
  text-align: center;
137
  }