sdkrastev commited on
Commit
1cb0a98
·
verified ·
1 Parent(s): 8bab329

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +37 -8
app.py CHANGED
@@ -14,14 +14,33 @@ pipe = pipeline(
14
  )
15
 
16
  fancy_css = """
17
- #main-container {
18
- max-width: 700px;
19
  margin: 0 auto;
20
  }
21
- #title {
 
 
 
 
 
 
22
  text-align: center;
23
- font-size: 2em;
24
- margin-bottom: 20px;
 
 
 
 
 
 
 
 
 
 
 
 
 
25
  }
26
  """
27
 
@@ -142,13 +161,23 @@ with gr.Blocks(css=fancy_css) as demo:
142
  gr.LoginButton()
143
 
144
  gr.Markdown(
145
- "🌟 Fancy AI Chatbot 🌟",
146
- elem_id="title",
 
 
 
 
 
147
  )
148
 
149
- with gr.Column(elem_id="main-container"):
150
  chatbot.render()
151
 
 
 
 
 
 
152
 
153
  if __name__ == "__main__":
154
  demo.launch()
 
14
  )
15
 
16
  fancy_css = """
17
+ .gradio-container {
18
+ max-width: 900px !important;
19
  margin: 0 auto;
20
  }
21
+
22
+ #app-title {
23
+ text-align: center;
24
+ margin-bottom: 4px;
25
+ }
26
+
27
+ #app-subtitle {
28
  text-align: center;
29
+ color: var(--body-text-color-subdued);
30
+ margin-bottom: 24px;
31
+ }
32
+
33
+ #chat-container {
34
+ border: 1px solid var(--border-color-primary);
35
+ border-radius: 12px;
36
+ padding: 16px;
37
+ box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
38
+ }
39
+
40
+ #model-note {
41
+ font-size: 0.9em;
42
+ color: var(--body-text-color-subdued);
43
+ margin-top: 8px;
44
  }
45
  """
46
 
 
161
  gr.LoginButton()
162
 
163
  gr.Markdown(
164
+ "# 🌟 Fancy AI Chatbot",
165
+ elem_id="app-title",
166
+ )
167
+
168
+ gr.Markdown(
169
+ "Compare a remotely hosted LLM with a model running locally on the Space.",
170
+ elem_id="app-subtitle",
171
  )
172
 
173
+ with gr.Column(elem_id="chat-container"):
174
  chatbot.render()
175
 
176
+ gr.Markdown(
177
+ "Use **Additional inputs** to switch between the API model and the locally executed model.",
178
+ elem_id="model-note",
179
+ )
180
+
181
 
182
  if __name__ == "__main__":
183
  demo.launch()