Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -89,10 +89,11 @@ custom_css = """
|
|
| 89 |
}
|
| 90 |
"""
|
| 91 |
|
| 92 |
-
#
|
| 93 |
-
|
| 94 |
-
|
| 95 |
-
|
|
|
|
| 96 |
# Header
|
| 97 |
with gr.Row():
|
| 98 |
gr.Markdown(
|
|
|
|
| 89 |
}
|
| 90 |
"""
|
| 91 |
|
| 92 |
+
# We remove 'css' and 'head' arguments from Blocks() and inject via gr.HTML instead
|
| 93 |
+
# to ensure compatibility across different Gradio versions.
|
| 94 |
+
with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
| 95 |
+
gr.HTML(f"<style>{custom_css}</style>")
|
| 96 |
+
|
| 97 |
# Header
|
| 98 |
with gr.Row():
|
| 99 |
gr.Markdown(
|