Spaces:
Running
Running
Polish Gradio launch compatibility
Browse files
app.py
CHANGED
|
@@ -3,6 +3,7 @@ import os
|
|
| 3 |
os.environ.setdefault("HF_HOME", "/tmp/huggingface")
|
| 4 |
os.environ.setdefault("HF_MODULES_CACHE", "/tmp/hf_modules")
|
| 5 |
os.environ.setdefault("MPLCONFIGDIR", "/tmp/matplotlib")
|
|
|
|
| 6 |
|
| 7 |
import html
|
| 8 |
import random
|
|
@@ -839,7 +840,7 @@ CSS = """
|
|
| 839 |
"""
|
| 840 |
|
| 841 |
|
| 842 |
-
with gr.Blocks(
|
| 843 |
gr.HTML(
|
| 844 |
"""
|
| 845 |
<div class="main-shell">
|
|
@@ -916,4 +917,4 @@ with gr.Blocks(css=CSS, theme=gr.themes.Base()) as demo:
|
|
| 916 |
demo.queue(default_concurrency_limit=8)
|
| 917 |
|
| 918 |
if __name__ == "__main__":
|
| 919 |
-
demo.launch()
|
|
|
|
| 3 |
os.environ.setdefault("HF_HOME", "/tmp/huggingface")
|
| 4 |
os.environ.setdefault("HF_MODULES_CACHE", "/tmp/hf_modules")
|
| 5 |
os.environ.setdefault("MPLCONFIGDIR", "/tmp/matplotlib")
|
| 6 |
+
os.environ.setdefault("GRADIO_SSR_MODE", "false")
|
| 7 |
|
| 8 |
import html
|
| 9 |
import random
|
|
|
|
| 840 |
"""
|
| 841 |
|
| 842 |
|
| 843 |
+
with gr.Blocks() as demo:
|
| 844 |
gr.HTML(
|
| 845 |
"""
|
| 846 |
<div class="main-shell">
|
|
|
|
| 917 |
demo.queue(default_concurrency_limit=8)
|
| 918 |
|
| 919 |
if __name__ == "__main__":
|
| 920 |
+
demo.launch(css=CSS, theme=gr.themes.Base())
|