Alex Arvanitidis commited on
Commit
d51a64c
·
1 Parent(s): cb5abd3

fix: remove gradio theme

Browse files
Files changed (2) hide show
  1. gradio.py +35 -36
  2. requirements.txt +0 -1
gradio.py CHANGED
@@ -74,44 +74,43 @@ class GradioAgentChatPack(BaseLlamaPack):
74
  def run(self, *args: Any, **kwargs: Any) -> Any:
75
  """Run the pipeline."""
76
  import gradio as gr
77
- from gradio.themes.utils import colors, fonts, sizes
78
-
79
- llama_theme = gr.themes.Soft(
80
- primary_hue=colors.purple,
81
- secondary_hue=colors.pink,
82
- neutral_hue=colors.gray,
83
- spacing_size=sizes.spacing_md,
84
- radius_size=sizes.radius_md,
85
- text_size=sizes.text_lg,
86
- font=(
87
- fonts.GoogleFont("Quicksand"),
88
- "ui-sans-serif",
89
- "sans-serif",
90
- ),
91
- font_mono=(
92
- fonts.GoogleFont("IBM Plex Mono"),
93
- "ui-monospace",
94
- "monospace",
95
- ),
96
- )
97
- llama_theme.set(
98
- body_background_fill="#FFFFFF",
99
- body_background_fill_dark="#000000",
100
- button_primary_background_fill="linear-gradient(90deg, *primary_300, *secondary_400)",
101
- button_primary_background_fill_hover="linear-gradient(90deg, *primary_200, *secondary_300)",
102
- button_primary_text_color="white",
103
- button_primary_background_fill_dark="linear-gradient(90deg, *primary_600, *secondary_800)",
104
- slider_color="*secondary_300",
105
- slider_color_dark="*secondary_600",
106
- block_title_text_weight="600",
107
- block_border_width="3px",
108
- block_shadow="*shadow_drop_lg",
109
- button_shadow="*shadow_drop_lg",
110
- button_large_padding="32px",
111
- )
112
 
113
  demo = gr.Blocks(
114
- theme=llama_theme,
115
  css="#box { height: 420px; overflow-y: scroll !important} #logo { align-self: right }",
116
  )
117
  with demo:
 
74
  def run(self, *args: Any, **kwargs: Any) -> Any:
75
  """Run the pipeline."""
76
  import gradio as gr
77
+
78
+ # llama_theme = gr.themes.Soft(
79
+ # primary_hue=colors.purple,
80
+ # secondary_hue=colors.pink,
81
+ # neutral_hue=colors.gray,
82
+ # spacing_size=sizes.spacing_md,
83
+ # radius_size=sizes.radius_md,
84
+ # text_size=sizes.text_lg,
85
+ # font=(
86
+ # fonts.GoogleFont("Quicksand"),
87
+ # "ui-sans-serif",
88
+ # "sans-serif",
89
+ # ),
90
+ # font_mono=(
91
+ # fonts.GoogleFont("IBM Plex Mono"),
92
+ # "ui-monospace",
93
+ # "monospace",
94
+ # ),
95
+ # )
96
+ # llama_theme.set(
97
+ # body_background_fill="#FFFFFF",
98
+ # body_background_fill_dark="#000000",
99
+ # button_primary_background_fill="linear-gradient(90deg, *primary_300, *secondary_400)",
100
+ # button_primary_background_fill_hover="linear-gradient(90deg, *primary_200, *secondary_300)",
101
+ # button_primary_text_color="white",
102
+ # button_primary_background_fill_dark="linear-gradient(90deg, *primary_600, *secondary_800)",
103
+ # slider_color="*secondary_300",
104
+ # slider_color_dark="*secondary_600",
105
+ # block_title_text_weight="600",
106
+ # block_border_width="3px",
107
+ # block_shadow="*shadow_drop_lg",
108
+ # button_shadow="*shadow_drop_lg",
109
+ # button_large_padding="32px",
110
+ # )
 
111
 
112
  demo = gr.Blocks(
113
+ # theme=llama_theme,
114
  css="#box { height: 420px; overflow-y: scroll !important} #logo { align-self: right }",
115
  )
116
  with demo:
requirements.txt CHANGED
@@ -5,4 +5,3 @@ jaqpot-python-sdk==6.0.3
5
  rdkit
6
  pubchempy
7
  ansi2html
8
- gradio==4.44.1
 
5
  rdkit
6
  pubchempy
7
  ansi2html