Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -102,7 +102,6 @@ def create_org_chart(df, title, direction='TB'):
|
|
| 102 |
),
|
| 103 |
hoverinfo='text',
|
| 104 |
textfont=dict(size=14, color='white')
|
| 105 |
-
)
|
| 106 |
|
| 107 |
fig = go.Figure(data=[edge_trace, node_trace],
|
| 108 |
layout=go.Layout(
|
|
@@ -149,7 +148,7 @@ CFO,Accounting Manager"""
|
|
| 149 |
df = pd.read_csv(StringIO(default_data))
|
| 150 |
|
| 151 |
# Show editable dataframe
|
| 152 |
-
edited_df = st.
|
| 153 |
|
| 154 |
# Generate chart
|
| 155 |
if st.button('Generate Organization Chart'):
|
|
|
|
| 102 |
),
|
| 103 |
hoverinfo='text',
|
| 104 |
textfont=dict(size=14, color='white')
|
|
|
|
| 105 |
|
| 106 |
fig = go.Figure(data=[edge_trace, node_trace],
|
| 107 |
layout=go.Layout(
|
|
|
|
| 148 |
df = pd.read_csv(StringIO(default_data))
|
| 149 |
|
| 150 |
# Show editable dataframe
|
| 151 |
+
edited_df = st.data_editor(df, num_rows="dynamic")
|
| 152 |
|
| 153 |
# Generate chart
|
| 154 |
if st.button('Generate Organization Chart'):
|