BryanBradfo commited on
Commit
3385dfa
ยท
1 Parent(s): 7742c01

fix of error

Browse files
Files changed (1) hide show
  1. app.py +10 -5
app.py CHANGED
@@ -109,6 +109,12 @@ button.primary:hover, .button.primary:hover {
109
  color: #ffffff !important;
110
  }
111
 
 
 
 
 
 
 
112
  /* Additional styling for the description block */
113
  .prose {
114
  color: #174ea6;
@@ -137,11 +143,12 @@ button.primary:hover, .button.primary:hover {
137
 
138
  DESCRIPTION = """\
139
  <div class="gemini-header">
140
- <h1>Hi, I'm Gemma-2! ๐Ÿ‘‹</h1>
 
141
  </div>
142
 
143
  This is a demo of [`google/gemma-2-2b-it`](https://huggingface.co/google/gemma-2-2b-it), fine-tuned for instruction following.
144
- For more details, please check [the post](https://huggingface.co/blog/gemma2).
145
 
146
  ๐Ÿ‘‰ Looking for a larger and more powerful version? Try the 27B version in [HuggingChat](https://huggingface.co/chat/models/google/gemma-2-27b-it) and the 9B version in [this Space](https://huggingface.co/spaces/huggingface-projects/gemma-2-9b-it).
147
  """
@@ -228,8 +235,6 @@ gemini_theme = gr.themes.Base(
228
 
229
  slider_color=GEMINI_COLORS["blue"],
230
  slider_color_dark=GEMINI_COLORS["blue"],
231
-
232
- chatbot_code_background_color=GEMINI_COLORS["light_gray"],
233
  )
234
 
235
  with gr.Blocks(theme=gemini_theme, css=GEMINI_CSS) as demo:
@@ -288,4 +293,4 @@ with gr.Blocks(theme=gemini_theme, css=GEMINI_CSS) as demo:
288
  )
289
 
290
  if __name__ == "__main__":
291
- demo.queue(max_size=20).launch(share=False)
 
109
  color: #ffffff !important;
110
  }
111
 
112
+ /* Code blocks styling */
113
+ .chatbot pre {
114
+ background-color: #f8f9fa !important;
115
+ border-left: 4px solid #4285f4 !important;
116
+ }
117
+
118
  /* Additional styling for the description block */
119
  .prose {
120
  color: #174ea6;
 
143
 
144
  DESCRIPTION = """\
145
  <div class="gemini-header">
146
+ <h1>Gemini-Style Gemma 2 2B IT</h1>
147
+ <p>Welcome to our Gemini-themed interface for Google's latest iteration of open LLMs.</p>
148
  </div>
149
 
150
  This is a demo of [`google/gemma-2-2b-it`](https://huggingface.co/google/gemma-2-2b-it), fine-tuned for instruction following.
151
+ For more details, please check [our post](https://huggingface.co/blog/gemma2).
152
 
153
  ๐Ÿ‘‰ Looking for a larger and more powerful version? Try the 27B version in [HuggingChat](https://huggingface.co/chat/models/google/gemma-2-27b-it) and the 9B version in [this Space](https://huggingface.co/spaces/huggingface-projects/gemma-2-9b-it).
154
  """
 
235
 
236
  slider_color=GEMINI_COLORS["blue"],
237
  slider_color_dark=GEMINI_COLORS["blue"],
 
 
238
  )
239
 
240
  with gr.Blocks(theme=gemini_theme, css=GEMINI_CSS) as demo:
 
293
  )
294
 
295
  if __name__ == "__main__":
296
+ demo.queue(max_size=20).launch()