Spaces:
Runtime error
Runtime error
Commit
·
c71c4fa
1
Parent(s):
e71b31a
Update app.py
Browse files
app.py
CHANGED
@@ -30,9 +30,9 @@ with gr.Blocks(css=css,theme='gradio/soft') as demo:
|
|
30 |
with gr.Column(scale=12):
|
31 |
with gr.Accordion("Build by [45度科研人](WeChat Public Accounts)", open=False):
|
32 |
gr.Markdown(description)
|
33 |
-
with gr.Column(scale=1):
|
34 |
-
|
35 |
-
|
36 |
|
37 |
with gr.Row(scale=1).style(equal_height=True):
|
38 |
with gr.Column(scale=5):
|
@@ -74,11 +74,11 @@ with gr.Blocks(css=css,theme='gradio/soft') as demo:
|
|
74 |
</div>
|
75 |
""")
|
76 |
|
77 |
-
toggle_dark.click(None,_js="""
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
|
83 |
keyTxt.submit(submit_key, keyTxt, [user_api_key, status_display])
|
84 |
keyTxt.change(submit_key, keyTxt, [user_api_key, status_display])
|
|
|
30 |
with gr.Column(scale=12):
|
31 |
with gr.Accordion("Build by [45度科研人](WeChat Public Accounts)", open=False):
|
32 |
gr.Markdown(description)
|
33 |
+
# with gr.Column(scale=1):
|
34 |
+
# with gr.Box():
|
35 |
+
# toggle_dark = gr.Button(value="Toggle Dark").style(full_width=True)
|
36 |
|
37 |
with gr.Row(scale=1).style(equal_height=True):
|
38 |
with gr.Column(scale=5):
|
|
|
74 |
</div>
|
75 |
""")
|
76 |
|
77 |
+
# toggle_dark.click(None,_js="""
|
78 |
+
# () => {
|
79 |
+
# document.body.classList.toggle('dark');
|
80 |
+
# document.querySelector('gradio-app').style.backgroundColor = 'var(--color-background-primary)'
|
81 |
+
# }""",)
|
82 |
|
83 |
keyTxt.submit(submit_key, keyTxt, [user_api_key, status_display])
|
84 |
keyTxt.change(submit_key, keyTxt, [user_api_key, status_display])
|