Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -5,6 +5,10 @@ import numpy as np
|
|
5 |
import altair as alt
|
6 |
import pydeck as pdk
|
7 |
|
|
|
|
|
|
|
|
|
8 |
@st.experimental_singleton
|
9 |
def get_database_session(_sessionmaker, url):
|
10 |
# Create a database connection object that points to the URL.
|
@@ -19,8 +23,6 @@ s2 = get_database_session(create_sessionmaker(), st.session_state.qp)
|
|
19 |
# value - even though the _sessionmaker parameter was different
|
20 |
# in both calls.
|
21 |
|
22 |
-
def create_sessionmaker():
|
23 |
-
a=a+1
|
24 |
|
25 |
# callback to update query param on selectbox change
|
26 |
def update_params():
|
|
|
5 |
import altair as alt
|
6 |
import pydeck as pdk
|
7 |
|
8 |
+
|
9 |
+
def create_sessionmaker():
|
10 |
+
a=a+1
|
11 |
+
|
12 |
@st.experimental_singleton
|
13 |
def get_database_session(_sessionmaker, url):
|
14 |
# Create a database connection object that points to the URL.
|
|
|
23 |
# value - even though the _sessionmaker parameter was different
|
24 |
# in both calls.
|
25 |
|
|
|
|
|
26 |
|
27 |
# callback to update query param on selectbox change
|
28 |
def update_params():
|