Spaces:
Runtime error
Runtime error
Garrett Goon
commited on
Commit
·
fa97f50
1
Parent(s):
586e0b4
variable name cleanup
Browse files
app.py
CHANGED
@@ -198,7 +198,7 @@ css = """
|
|
198 |
display: none;
|
199 |
margin-bottom: 20px;
|
200 |
}
|
201 |
-
#license-
|
202 |
display: none;
|
203 |
margin-bottom: 20px;
|
204 |
}
|
@@ -409,12 +409,12 @@ with block:
|
|
409 |
_js="""
|
410 |
() => {
|
411 |
var appDom = document.querySelector("body > gradio-app");
|
412 |
-
var options = appDom.querySelector("#license-
|
413 |
-
if (options == null) {options = appDom.shadowRoot.querySelector("#license-
|
414 |
options.style.display = ["none", ""].includes(options.style.display) ? "flex" : "none";
|
415 |
}""",
|
416 |
)
|
417 |
-
with gr.Row(elem_id="license-
|
418 |
gr.HTML(
|
419 |
"""
|
420 |
<div class="acknowledgments">
|
|
|
198 |
display: none;
|
199 |
margin-bottom: 20px;
|
200 |
}
|
201 |
+
#license-display {
|
202 |
display: none;
|
203 |
margin-bottom: 20px;
|
204 |
}
|
|
|
409 |
_js="""
|
410 |
() => {
|
411 |
var appDom = document.querySelector("body > gradio-app");
|
412 |
+
var options = appDom.querySelector("#license-display")
|
413 |
+
if (options == null) {options = appDom.shadowRoot.querySelector("#license-display")}
|
414 |
options.style.display = ["none", ""].includes(options.style.display) ? "flex" : "none";
|
415 |
}""",
|
416 |
)
|
417 |
+
with gr.Row(elem_id="license-display"):
|
418 |
gr.HTML(
|
419 |
"""
|
420 |
<div class="acknowledgments">
|