Spaces:
Runtime error
Runtime error
set correct hostname add iframeResizer
Browse files
app.py
CHANGED
@@ -6,7 +6,10 @@ import plotly.express as px
|
|
6 |
import pandas as pd
|
7 |
|
8 |
# Create dash app
|
9 |
-
|
|
|
|
|
|
|
10 |
|
11 |
# Set dog and cat images
|
12 |
dogImage = "https://www.iconexperience.com/_img/v_collection_png/256x256/shadow/dog.png"
|
@@ -52,4 +55,4 @@ def open_url(hoverData):
|
|
52 |
|
53 |
|
54 |
if __name__ == '__main__':
|
55 |
-
app.run_server(port=7860,
|
|
|
6 |
import pandas as pd
|
7 |
|
8 |
# Create dash app
|
9 |
+
iframe_resizer = {
|
10 |
+
'src': "https://cdnjs.cloudflare.com/ajax/libs/iframe-resizer/4.3.1/iframeResizer.contentWindow.min.js"}
|
11 |
+
app = dash.Dash(__name__, external_scripts=[iframe_resizer])
|
12 |
+
|
13 |
|
14 |
# Set dog and cat images
|
15 |
dogImage = "https://www.iconexperience.com/_img/v_collection_png/256x256/shadow/dog.png"
|
|
|
55 |
|
56 |
|
57 |
if __name__ == '__main__':
|
58 |
+
app.run_server(port=7860, host="0.0.0.0", threaded=True, debug=True)
|