mariusjabami commited on
Commit
287900e
verified
1 Parent(s): 79321e2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +20 -8
app.py CHANGED
@@ -5,11 +5,24 @@ import time
5
  client = InferenceClient("lambdaindie/lambdai")
6
 
7
  css = """
 
 
8
  body {
9
  background-color: #111;
10
  color: #e0e0e0;
11
  font-family: 'JetBrains Mono', monospace;
 
 
 
 
 
 
 
 
 
 
12
  }
 
13
  .gr-button {
14
  background: linear-gradient(to right, #2a2a2a, #1f1f1f);
15
  color: white;
@@ -24,12 +37,15 @@ body {
24
  .gr-textbox textarea {
25
  background-color: #181818 !important;
26
  color: #fff !important;
27
- font-family: 'JetBrains Mono', monospace;
28
  border-radius: 8px;
29
  }
30
- .gr-chat-message {
31
- font-family: 'JetBrains Mono', monospace;
 
 
32
  }
 
33
  .markdown-think {
34
  background-color: #1e1e1e;
35
  border-left: 4px solid #555;
@@ -45,10 +61,6 @@ body {
45
  50% { opacity: 1.0; }
46
  100% { opacity: 0.6; }
47
  }
48
- .gr-chatbot {
49
- width: 100% !important;
50
- max-width: 100% !important;
51
- }
52
  """
53
 
54
  def respond(message, history, system_message, max_tokens, temperature, top_p):
@@ -104,7 +116,7 @@ def respond(message, history, system_message, max_tokens, temperature, top_p):
104
 
105
  demo = gr.ChatInterface(
106
  fn=respond,
107
- title="位ambdAI",
108
  theme=gr.themes.Base(primary_hue="gray"),
109
  css=css,
110
  additional_inputs=[
 
5
  client = InferenceClient("lambdaindie/lambdai")
6
 
7
  css = """
8
+ @import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono&display=swap');
9
+
10
  body {
11
  background-color: #111;
12
  color: #e0e0e0;
13
  font-family: 'JetBrains Mono', monospace;
14
+ margin: 0;
15
+ padding: 0;
16
+ width: 100vw;
17
+ overflow-x: hidden;
18
+ }
19
+
20
+ .gradio-container, .gr-block.gr-box {
21
+ width: 100vw !important;
22
+ max-width: 100vw !important;
23
+ box-sizing: border-box;
24
  }
25
+
26
  .gr-button {
27
  background: linear-gradient(to right, #2a2a2a, #1f1f1f);
28
  color: white;
 
37
  .gr-textbox textarea {
38
  background-color: #181818 !important;
39
  color: #fff !important;
40
+ font-family: 'JetBrains Mono', monospace !important;
41
  border-radius: 8px;
42
  }
43
+ .gr-chat-message, .gr-chatbot {
44
+ font-family: 'JetBrains Mono', monospace !important;
45
+ width: 100% !important;
46
+ max-width: 100% !important;
47
  }
48
+
49
  .markdown-think {
50
  background-color: #1e1e1e;
51
  border-left: 4px solid #555;
 
61
  50% { opacity: 1.0; }
62
  100% { opacity: 0.6; }
63
  }
 
 
 
 
64
  """
65
 
66
  def respond(message, history, system_message, max_tokens, temperature, top_p):
 
116
 
117
  demo = gr.ChatInterface(
118
  fn=respond,
119
+ title="位mabdAI", # T铆tulo vis铆vel agora
120
  theme=gr.themes.Base(primary_hue="gray"),
121
  css=css,
122
  additional_inputs=[