Spaces:
Runtime error
Runtime error
Alex Arvanitidis
commited on
Commit
·
d51a64c
1
Parent(s):
cb5abd3
fix: remove gradio theme
Browse files- gradio.py +35 -36
- 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 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
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
|
|