Spaces:
Runtime error
Runtime error
Dagfinn1962
commited on
Commit
•
b3e6f60
1
Parent(s):
be96b47
Update app.py
Browse files
app.py
CHANGED
@@ -110,14 +110,23 @@ def call_inf_server(prompt, openai_key):
|
|
110 |
logging.warning(f"Result of text generation: {response}")
|
111 |
return response
|
112 |
|
113 |
-
# ------ STYLES ---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
114 |
with gr.Blocks(
|
115 |
theme=gr.themes.Glass(
|
116 |
primary_hue="amber",
|
117 |
secondary_hue="neutral",
|
118 |
-
neutral_hue="
|
119 |
|
120 |
-
) as demo: # LEAVE THIS - IMPORTANT
|
|
|
121 |
# ------ TO HERE //////////////////////////////////////////////////////////////////
|
122 |
|
123 |
gr.Markdown(
|
|
|
110 |
logging.warning(f"Result of text generation: {response}")
|
111 |
return response
|
112 |
|
113 |
+
# ------ STYLES ---
|
114 |
+
# see https://huggingface.co/spaces/Gradio-Themes/theme_builder for more to tweek
|
115 |
+
#//////////////////////////////////////////////////////////////////// Glass(),
|
116 |
+
|
117 |
+
# PASTE HERE theme = gr.themes.Glass(neutral_hue=gr.themes.Color(neutral_100="#f5f5f5", neutral_200="#e5e5e5", neutral_300="#d4d4d4", neutral_400="#a3a3a3", neutral_50="#fafafa", neutral_500="#322a2a", neutral_600="#525252", neutral_700="#404040", neutral_800="#262626", neutral_900="#171717", neutral_950="#0f0f0f"),
|
118 |
+
)
|
119 |
+
|
120 |
+
with gr.Blocks(theme=theme) as demo:
|
121 |
+
...
|
122 |
with gr.Blocks(
|
123 |
theme=gr.themes.Glass(
|
124 |
primary_hue="amber",
|
125 |
secondary_hue="neutral",
|
126 |
+
neutral_hue="gr.themes.Color="(neutral_100="#f5f5f5", neutral_200="#e5e5e5", neutral_300="#d4d4d4", neutral_400="#a3a3a3", neutral_50="#fafafa", neutral_500="#322a2a", neutral_600="#525252", neutral_700="#404040", neutral_800="#262626", neutral_900="#171717", neutral_950="#0f0f0f"),",),
|
127 |
|
128 |
+
) as demo: # LEAVE THIS - IMPORTANT
|
129 |
+
|
130 |
# ------ TO HERE //////////////////////////////////////////////////////////////////
|
131 |
|
132 |
gr.Markdown(
|