Update app.py
Browse files
app.py
CHANGED
|
@@ -156,9 +156,25 @@ topics = """
|
|
| 156 |
# Create a Gradio HTML component
|
| 157 |
def display_iframe():
|
| 158 |
return iframe
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 159 |
|
| 160 |
# Setup the Gradio Blocks interface with custom layout components
|
| 161 |
-
with gr.Blocks(theme=
|
| 162 |
gr.Markdown(welcome_message) # Display the formatted welcome message
|
| 163 |
with gr.Column():
|
| 164 |
with gr.Column():
|
|
|
|
| 156 |
# Create a Gradio HTML component
|
| 157 |
def display_iframe():
|
| 158 |
return iframe
|
| 159 |
+
|
| 160 |
+
theme = gr.themes.Monochrome(
|
| 161 |
+
primary_hue="234,210,203",
|
| 162 |
+
secondary_hue="227,234,218",
|
| 163 |
+
).set(
|
| 164 |
+
background_fill_primary='*primary_200',
|
| 165 |
+
background_fill_primary_dark='*primary_200',
|
| 166 |
+
background_fill_secondary='*secondary_300',
|
| 167 |
+
background_fill_secondary_dark='*secondary_300',
|
| 168 |
+
border_color_accent='*secondary_200',
|
| 169 |
+
border_color_accent_dark='*secondary_600',
|
| 170 |
+
border_color_accent_subdued='*secondary_200',
|
| 171 |
+
border_color_primary='*secondary_300',
|
| 172 |
+
block_border_color='*secondary_200',
|
| 173 |
+
button_primary_background_fill='*secondary_300',
|
| 174 |
+
button_primary_background_fill_dark='*secondary_300'
|
| 175 |
|
| 176 |
# Setup the Gradio Blocks interface with custom layout components
|
| 177 |
+
with gr.Blocks(theme=theme) as demo:
|
| 178 |
gr.Markdown(welcome_message) # Display the formatted welcome message
|
| 179 |
with gr.Column():
|
| 180 |
with gr.Column():
|