Spaces:
Runtime error
Runtime error
brian-yu-nexusflow
commited on
Commit
Β·
4f1a520
1
Parent(s):
cdfc177
Update app.py
Browse files
app.py
CHANGED
@@ -158,7 +158,11 @@ def {name}(**kwargs):
|
|
158 |
|
159 |
class RavenDemo(gr.Blocks):
|
160 |
def __init__(self, config: DemoConfig) -> None:
|
161 |
-
|
|
|
|
|
|
|
|
|
162 |
|
163 |
self.config = config
|
164 |
self.tools = Tools(config)
|
@@ -277,6 +281,8 @@ class RavenDemo(gr.Blocks):
|
|
277 |
outputs=gmaps_html,
|
278 |
)
|
279 |
|
|
|
|
|
280 |
def on_submit(self, query: str, request: gr.Request):
|
281 |
def get_returns():
|
282 |
return (
|
|
|
158 |
|
159 |
class RavenDemo(gr.Blocks):
|
160 |
def __init__(self, config: DemoConfig) -> None:
|
161 |
+
theme = gr.themes.Soft(
|
162 |
+
primary_hue=gr.themes.colors.blue,
|
163 |
+
secondary_hue=gr.themes.colors.blue,
|
164 |
+
)
|
165 |
+
super().__init__(theme=theme, css=CSS, title="NexusRaven V2 Demo")
|
166 |
|
167 |
self.config = config
|
168 |
self.tools = Tools(config)
|
|
|
281 |
outputs=gmaps_html,
|
282 |
)
|
283 |
|
284 |
+
self.load(None, None, None, js=CHANGE_DARK_SCRIPT)
|
285 |
+
|
286 |
def on_submit(self, query: str, request: gr.Request):
|
287 |
def get_returns():
|
288 |
return (
|