Commit
•
560a0dc
1
Parent(s):
207c670
Moving js
Browse files
app.py
CHANGED
@@ -111,17 +111,17 @@ with gr.Blocks() as ui:
|
|
111 |
gr.Image(proj_dir / 'media' / 'reddit_scraper.drawio.png')
|
112 |
gr.Markdown("# Logs")
|
113 |
output = gr.HTML(log_file_to_html_string, every=1)
|
114 |
-
ui.load(None,
|
115 |
-
_js="""
|
116 |
-
() => {
|
117 |
-
document.body.classList.toggle('dark');
|
118 |
-
document.querySelector('gradio-app').style.backgroundColor = 'var(--color-background-primary)'
|
119 |
-
}
|
120 |
-
""", )
|
121 |
with gr.Tab("How to Create?"):
|
122 |
gr.Markdown(how_to_md)
|
123 |
with gr.Tab("How does it work?"):
|
124 |
gr.Markdown(how_does_it_work_md)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
125 |
|
126 |
app = WebhooksServer(ui=ui.queue(), webhook_secret=WEBHOOK_SECRET)
|
127 |
|
|
|
111 |
gr.Image(proj_dir / 'media' / 'reddit_scraper.drawio.png')
|
112 |
gr.Markdown("# Logs")
|
113 |
output = gr.HTML(log_file_to_html_string, every=1)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
114 |
with gr.Tab("How to Create?"):
|
115 |
gr.Markdown(how_to_md)
|
116 |
with gr.Tab("How does it work?"):
|
117 |
gr.Markdown(how_does_it_work_md)
|
118 |
+
ui.load(None,
|
119 |
+
js="""
|
120 |
+
() => {
|
121 |
+
document.body.classList.toggle('dark');
|
122 |
+
document.querySelector('gradio-app').style.backgroundColor = 'var(--color-background-primary)'
|
123 |
+
}
|
124 |
+
""", )
|
125 |
|
126 |
app = WebhooksServer(ui=ui.queue(), webhook_secret=WEBHOOK_SECRET)
|
127 |
|