freshyfresco commited on
Commit
bdd0542
1 Parent(s): 214b2d9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -11
app.py CHANGED
@@ -1,5 +1,4 @@
1
  from __future__ import annotations
2
-
3
  from typing import Iterable
4
  import gradio as gr
5
  import sys
@@ -25,30 +24,25 @@ rich_presence()
25
  class Applio(Base):
26
  def __init__(
27
  self,
28
- *,
29
  primary_hue: colors.Color | str = colors.green,
30
  secondary_hue: colors.Color | str = colors.emerald,
31
  neutral_hue: colors.Color | str = colors.neutral,
32
  spacing_size: sizes.Size | str = sizes.spacing_md,
33
  radius_size: sizes.Size | str = sizes.radius_md,
34
  text_size: sizes.Size | str = sizes.text_lg,
35
- font: fonts.Font
36
- | str
37
- | Iterable[fonts.Font | str] = (
38
  'Inter V',
39
  fonts.GoogleFont('Inter'),
40
  'ui-sans-serif',
41
  'system-ui',
42
  ),
43
- font_mono: fonts.Font
44
- | str
45
- | Iterable[fonts.Font | str] = (
46
  'ui-monospace',
47
  fonts.GoogleFont("Roboto Mono"),
48
  'Consolas',
49
  'monospace',
50
  ),
51
- chatbot_code_background_color: colors.Color | str = colors.black, # Added missing setting
52
  ):
53
  super().__init__(
54
  primary_hue=primary_hue,
@@ -320,7 +314,6 @@ class Applio(Base):
320
 
321
 
322
 
323
- # Define the Gradio application
324
  with gr.Blocks(theme=Applio(), title="Applio") as ApplioApp:
325
  gr.Markdown("# Applio")
326
  gr.Markdown(
@@ -353,4 +346,3 @@ with gr.Blocks(theme=Applio(), title="Applio") as ApplioApp:
353
 
354
  if __name__ == "__main__":
355
  ApplioApp.launch()
356
- # share=True
 
1
  from __future__ import annotations
 
2
  from typing import Iterable
3
  import gradio as gr
4
  import sys
 
24
  class Applio(Base):
25
  def __init__(
26
  self,
 
27
  primary_hue: colors.Color | str = colors.green,
28
  secondary_hue: colors.Color | str = colors.emerald,
29
  neutral_hue: colors.Color | str = colors.neutral,
30
  spacing_size: sizes.Size | str = sizes.spacing_md,
31
  radius_size: sizes.Size | str = sizes.radius_md,
32
  text_size: sizes.Size | str = sizes.text_lg,
33
+ font: fonts.Font | str | Iterable[fonts.Font | str] = (
 
 
34
  'Inter V',
35
  fonts.GoogleFont('Inter'),
36
  'ui-sans-serif',
37
  'system-ui',
38
  ),
39
+ font_mono: fonts.Font | str | Iterable[fonts.Font | str] = (
 
 
40
  'ui-monospace',
41
  fonts.GoogleFont("Roboto Mono"),
42
  'Consolas',
43
  'monospace',
44
  ),
45
+ chatbot_code_background_color: colors.Color | str = "black",
46
  ):
47
  super().__init__(
48
  primary_hue=primary_hue,
 
314
 
315
 
316
 
 
317
  with gr.Blocks(theme=Applio(), title="Applio") as ApplioApp:
318
  gr.Markdown("# Applio")
319
  gr.Markdown(
 
346
 
347
  if __name__ == "__main__":
348
  ApplioApp.launch()