Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -123,9 +123,27 @@ topics = """
|
|
| 123 |
|
| 124 |
"""
|
| 125 |
|
| 126 |
-
|
| 127 |
-
|
| 128 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 129 |
|
| 130 |
# Setup the Gradio Blocks interface with custom layout components
|
| 131 |
with gr.Blocks(theme='JohnSmith9982/small_and_pretty') as demo:
|
|
|
|
| 123 |
|
| 124 |
"""
|
| 125 |
|
| 126 |
+
# Create a Gradio HTML component
|
| 127 |
+
def display_iframe():
|
| 128 |
+
return iframe
|
| 129 |
+
def display_image():
|
| 130 |
+
return "https://cdn-uploads.huggingface.co/production/uploads/6668622b72b61ba78fe7d4bb/PkWjNxvGm9MOqGkZdiT4e.png"
|
| 131 |
+
theme = gr.themes.Monochrome(
|
| 132 |
+
primary_hue="amber",
|
| 133 |
+
secondary_hue="rose",
|
| 134 |
+
).set(
|
| 135 |
+
background_fill_primary='*primary_200',
|
| 136 |
+
background_fill_primary_dark='*primary_200',
|
| 137 |
+
background_fill_secondary='*secondary_300',
|
| 138 |
+
background_fill_secondary_dark='*secondary_300',
|
| 139 |
+
border_color_accent='*secondary_200',
|
| 140 |
+
border_color_accent_dark='*secondary_600',
|
| 141 |
+
border_color_accent_subdued='*secondary_200',
|
| 142 |
+
border_color_primary='*secondary_300',
|
| 143 |
+
block_border_color='*secondary_200',
|
| 144 |
+
button_primary_background_fill='*secondary_300',
|
| 145 |
+
button_primary_background_fill_dark='*secondary_300'
|
| 146 |
+
)
|
| 147 |
|
| 148 |
# Setup the Gradio Blocks interface with custom layout components
|
| 149 |
with gr.Blocks(theme='JohnSmith9982/small_and_pretty') as demo:
|