ysharma HF staff commited on
Commit
16c4fb3
β€’
1 Parent(s): 9bdc545

update description

Browse files
Files changed (1) hide show
  1. app.py +10 -6
app.py CHANGED
@@ -8,11 +8,15 @@ from threading import Thread
8
  # Set an environment variable
9
  HF_TOKEN = os.environ.get("HF_TOKEN", None)
10
 
11
- DESCRIPTION = """\
12
- <h1><center> CodeGemma </center></h1>
13
- This Space demonstrates model [CodeGemma-7b-it](https://huggingface.co/google/codegemma-7b-it) by Google. CodeGemma is a collection of lightweight open code models built on top of Gemma. Feel free to play with it, or duplicate to run privately!
14
- πŸ”Ž For more details about the CodeGemma release and how to use the models with `transformers`, take a look [at our blog post](https://huggingface.co/blog/codegemma).
15
- """
 
 
 
 
16
 
17
  PLACEHOLDER = """
18
  <div style="opacity: 0.65;">
@@ -69,7 +73,7 @@ chatbot=gr.Chatbot(placeholder=PLACEHOLDER,height=500)
69
 
70
  with gr.Blocks(fill_height=True) as demo:
71
 
72
- gr.Markdown(DESCRIPTION)
73
 
74
  gr.ChatInterface(
75
  fn=codegemma,
 
8
  # Set an environment variable
9
  HF_TOKEN = os.environ.get("HF_TOKEN", None)
10
 
11
+ DESCRIPTION = '''
12
+ <div>
13
+ <h1 style="text-align: center;">CodeGemma</h1>
14
+
15
+ <p>This Space demonstrates model <a href="https://huggingface.co/google/codegemma-7b-it">CodeGemma-7b-it</a> by Google. CodeGemma is a collection of lightweight open code models built on top of Gemma. Feel free to play with it, or duplicate to run privately!</p>
16
+
17
+ <p>πŸ”Ž For more details about the CodeGemma release and how to use the models with <code>transformers</code>, take a look <a href="https://huggingface.co/blog/codegemma">at our blog post</a>.</p>
18
+ </div>
19
+ '''
20
 
21
  PLACEHOLDER = """
22
  <div style="opacity: 0.65;">
 
73
 
74
  with gr.Blocks(fill_height=True) as demo:
75
 
76
+ gr.HTML(DESCRIPTION)
77
 
78
  gr.ChatInterface(
79
  fn=codegemma,