Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -76,25 +76,26 @@ def render_graph():
|
|
76 |
|
77 |
def update_graph():
|
78 |
for i in range(60):
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
# Render the updated graph
|
94 |
-
render_graph()
|
95 |
-
|
96 |
-
# Wait for 1 second
|
97 |
-
time.sleep(1)
|
|
|
98 |
# Render the initial graph
|
99 |
render_graph()
|
100 |
|
|
|
76 |
|
77 |
def update_graph():
|
78 |
for i in range(60):
|
79 |
+
# Update the graph with new inputs randomly
|
80 |
+
graph.node("๐ Data Collection", label=f"๐ Data Collection\nData {random.randint(0,100)}")
|
81 |
+
graph.node("๐งน Data Cleaning", label=f"๐งน Data Cleaning\nCleaned Data {random.randint(0,100)}")
|
82 |
+
graph.node("๐ง Data Transformation", label=f"๐ง Data Transformation\nTransformed Data {random.randint(0,100)}")
|
83 |
+
graph.node("๐ Feature Engineering", label=f"๐ Feature Engineering\nFeatures {random.randint(0,100)}")
|
84 |
+
graph.node("โ๏ธ Model Selection", label=f"โ๏ธ Model Selection\nSelected Model {random.randint(0,100)}")
|
85 |
+
graph.node("๐ Model Training", label=f"๐ Model Training\nTrained Model {random.randint(0,100)}")
|
86 |
+
graph.node("๐ข Model Deployment", label=f"๐ข Model Deployment\nDeployed Model {random.randint(0,100)}")
|
87 |
+
graph.node("๐ก Model Serving", label=f"๐ก Model Serving\nServed Model {random.randint(0,100)}")
|
88 |
+
graph.node("๐ฎ Predictions", label=f"๐ฎ Predictions\nPredicted Results {random.randint(0,100)}")
|
89 |
+
graph.node("๐ Feedback Collection", label=f"๐ Feedback Collection\nFeedback {random.randint(0,100)}")
|
90 |
+
graph.node("๐ค Feedback Processing", label=f"๐ค Feedback Processing\nProcessed Feedback {random.randint(0,100)}")
|
91 |
+
graph.node("โ๏ธ Model Updating", label=f"โ๏ธ Model Updating\nUpdated Model {random.randint(0,100)}")
|
92 |
+
|
93 |
+
# Render the updated graph
|
94 |
+
render_graph()
|
95 |
+
|
96 |
+
# Wait for 1 second
|
97 |
+
time.sleep(1)
|
98 |
+
|
99 |
# Render the initial graph
|
100 |
render_graph()
|
101 |
|