Update src/streamlit_app.py
Browse files- src/streamlit_app.py +2 -1
src/streamlit_app.py
CHANGED
|
@@ -1,5 +1,6 @@
|
|
| 1 |
import streamlit as st
|
| 2 |
import numpy as np
|
|
|
|
| 3 |
import matplotlib.pyplot as plt
|
| 4 |
from sklearn.linear_model import LinearRegression
|
| 5 |
from sklearn.metrics import mean_squared_error
|
|
@@ -41,7 +42,7 @@ if mode != st.session_state.current_mode:
|
|
| 41 |
if train_btn:
|
| 42 |
|
| 43 |
with st.spinner("⏳ Training model..."):
|
| 44 |
-
|
| 45 |
|
| 46 |
if mode == "2D Regression":
|
| 47 |
X = np.linspace(0, 10, num_points).reshape(-1, 1)
|
|
|
|
| 1 |
import streamlit as st
|
| 2 |
import numpy as np
|
| 3 |
+
import time
|
| 4 |
import matplotlib.pyplot as plt
|
| 5 |
from sklearn.linear_model import LinearRegression
|
| 6 |
from sklearn.metrics import mean_squared_error
|
|
|
|
| 42 |
if train_btn:
|
| 43 |
|
| 44 |
with st.spinner("⏳ Training model..."):
|
| 45 |
+
time.sleep(0.5)
|
| 46 |
|
| 47 |
if mode == "2D Regression":
|
| 48 |
X = np.linspace(0, 10, num_points).reshape(-1, 1)
|