Spaces:
Runtime error
Runtime error
bug fix
Browse files
app.py
CHANGED
@@ -149,12 +149,13 @@ def main():
|
|
149 |
update_plot(df, preds, axs, fig)
|
150 |
|
151 |
def update_plot2(ax):
|
152 |
-
|
153 |
-
|
154 |
-
|
155 |
-
|
156 |
-
|
157 |
|
|
|
158 |
# Create an initial plot
|
159 |
figs, ax = plt.subplots()
|
160 |
x_initial = np.linspace(0, 2*np.pi, 100)
|
|
|
149 |
update_plot(df, preds, axs, fig)
|
150 |
|
151 |
def update_plot2(ax):
|
152 |
+
x = np.linspace(0, 2*np.pi, 100)
|
153 |
+
y = np.sin(x)
|
154 |
+
ax.plot(x, y, label='New Line')
|
155 |
+
ax.legend()
|
156 |
+
st.pyplot()
|
157 |
|
158 |
+
st.button('Add Line')
|
159 |
# Create an initial plot
|
160 |
figs, ax = plt.subplots()
|
161 |
x_initial = np.linspace(0, 2*np.pi, 100)
|