diff --git a/frontend/src/index.jsx b/frontend/src/index.jsx index eb288a418b..9e94570eb0 100644 --- a/frontend/src/index.jsx +++ b/frontend/src/index.jsx @@ -28,6 +28,12 @@ get_config().then(config => { if (config.auth_required) { ReactDOM.render(, document.getElementById('root')) } else { + if (config.css !== null) { + var head = document.head || document.getElementsByTagName('head')[0], + style = document.createElement('style'); + head.appendChild(style); + style.appendChild(document.createTextNode(config.css)); + } ReactDOM.render(
{config.title ?

{config.title}

: false} diff --git a/gradio.egg-info/requires.txt b/gradio.egg-info/requires.txt index 8e565209f9..b6135b3e41 100644 --- a/gradio.egg-info/requires.txt +++ b/gradio.egg-info/requires.txt @@ -1,15 +1,15 @@ -numpy -scipy -matplotlib -pandas -pillow +Flask-Cors>=3.0.8 +Flask-Login +Flask>=1.1.1 +analytics-python ffmpy +flask-cachebuster markdown2 +matplotlib +numpy +pandas +paramiko +pillow pycryptodome requests -paramiko -analytics-python -Flask>=1.1.1 -Flask-Cors>=3.0.8 -flask-cachebuster -Flask-Login +scipy diff --git a/gradio/interface.py b/gradio/interface.py index 9f9c98e5e3..7eb57dd781 100644 --- a/gradio/interface.py +++ b/gradio/interface.py @@ -239,6 +239,7 @@ class Interface: "description": self.description, "article": self.article, "theme": self.theme, + "css": self.css, "thumbnail": self.thumbnail, "allow_screenshot": self.allow_screenshot, "allow_flagging": self.allow_flagging,