Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -13,6 +13,11 @@ _dash_renderer._set_react_version("18.2.0")
|
|
13 |
import plotly.io as pio
|
14 |
from flask import Flask
|
15 |
|
|
|
|
|
|
|
|
|
|
|
16 |
server = Flask(__name__)
|
17 |
|
18 |
# Create a customized version of the plotly_dark theme with a modified background color.
|
@@ -211,7 +216,7 @@ def custom_error_handler(err):
|
|
211 |
# For now, we just print the exception to the terminal with additional text
|
212 |
print(f"The app raised the following exception: {err}")
|
213 |
|
214 |
-
app = Dash(server=server, external_stylesheets=dmc.styles.ALL, on_error=custom_error_handler)
|
215 |
|
216 |
app.layout = dmc.MantineProvider(
|
217 |
[
|
|
|
13 |
import plotly.io as pio
|
14 |
from flask import Flask
|
15 |
|
16 |
+
# external JavaScript files
|
17 |
+
external_scripts = [
|
18 |
+
'https://datacipen-copilotdatast.hf.space/copilot/index.js'
|
19 |
+
]
|
20 |
+
|
21 |
server = Flask(__name__)
|
22 |
|
23 |
# Create a customized version of the plotly_dark theme with a modified background color.
|
|
|
216 |
# For now, we just print the exception to the terminal with additional text
|
217 |
print(f"The app raised the following exception: {err}")
|
218 |
|
219 |
+
app = Dash(__name__, external_scripts=external_scripts, server=server, external_stylesheets=dmc.styles.ALL, on_error=custom_error_handler)
|
220 |
|
221 |
app.layout = dmc.MantineProvider(
|
222 |
[
|