svjack commited on
Commit
e028464
·
1 Parent(s): 3ffa99e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +16 -2
app.py CHANGED
@@ -37,11 +37,25 @@ def process_stream(instruction, temperature, top_p, top_k, max_new_tokens, seed)
37
 
38
  with gr.Blocks(
39
  theme=gr.themes.Soft(),
40
- css=".disclaimer {font-variant-caps: all-small-caps;}",
 
 
 
 
 
 
 
 
 
 
 
41
  ) as demo:
42
  gr.HTML(
43
- """<h1> <center> <img src="https://huggingface.co/spaces/svjack/chatglm3-6b-ggml/resolve/main/hanuman.png" width="128" height="128">
 
 
44
  ChatGLM3 on CPU in CPP </center></h1>
 
45
  This demo uses the [chatglm.cpp](https://github.com/li-plus/chatglm.cpp) library on 2 CPU cores.
46
  """
47
  )
 
37
 
38
  with gr.Blocks(
39
  theme=gr.themes.Soft(),
40
+ css='''
41
+ .header img {
42
+ float: middle;
43
+ width: 33px;
44
+ height: 33px;
45
+ }
46
+ .header h1 {
47
+ top: 18px;
48
+ left: 10px;
49
+ }
50
+ .disclaimer {font-variant-caps: all-small-caps;}
51
+ ''',
52
  ) as demo:
53
  gr.HTML(
54
+ """
55
+ <div class="header">
56
+ <h1> <center> <img src="https://huggingface.co/spaces/svjack/chatglm3-6b-ggml/resolve/main/hanuman.png">
57
  ChatGLM3 on CPU in CPP </center></h1>
58
+ </div>
59
  This demo uses the [chatglm.cpp](https://github.com/li-plus/chatglm.cpp) library on 2 CPU cores.
60
  """
61
  )