Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -89,9 +89,9 @@ custom_css = """
|
|
| 89 |
}
|
| 90 |
"""
|
| 91 |
|
| 92 |
-
# We remove 'css' and '
|
| 93 |
-
# to ensure compatibility across
|
| 94 |
-
with gr.Blocks(
|
| 95 |
gr.HTML(f"<style>{custom_css}</style>")
|
| 96 |
|
| 97 |
# Header
|
|
@@ -207,4 +207,4 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
|
| 207 |
# -------------------- RUN --------------------
|
| 208 |
if __name__ == "__main__":
|
| 209 |
# queue() is generally required for streaming to work correctly
|
| 210 |
-
demo.queue().launch(share=False)
|
|
|
|
| 89 |
}
|
| 90 |
"""
|
| 91 |
|
| 92 |
+
# We remove 'css', 'head', and 'theme' arguments from Blocks() and inject css via gr.HTML instead
|
| 93 |
+
# to ensure compatibility across older Gradio versions.
|
| 94 |
+
with gr.Blocks() as demo:
|
| 95 |
gr.HTML(f"<style>{custom_css}</style>")
|
| 96 |
|
| 97 |
# Header
|
|
|
|
| 207 |
# -------------------- RUN --------------------
|
| 208 |
if __name__ == "__main__":
|
| 209 |
# queue() is generally required for streaming to work correctly
|
| 210 |
+
demo.queue().launch(share=False)
|