mirror of
https://github.com/gradio-app/gradio.git
synced 2024-12-15 02:11:15 +08:00
reintroduce custom css support
This commit is contained in:
parent
31919a884c
commit
e49e88c244
@ -28,6 +28,12 @@ get_config().then(config => {
|
||||
if (config.auth_required) {
|
||||
ReactDOM.render(<Login {...config} />, 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(
|
||||
<div class="gradio_page">
|
||||
{config.title ? <h1 className="title">{config.title}</h1> : false}
|
||||
|
@ -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
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user