Spaces:
Sleeping
Sleeping
Commit
·
b2cd959
1
Parent(s):
5cfc531
Add system
Browse files
app.py
CHANGED
@@ -118,8 +118,8 @@ def run_model():
|
|
118 |
data = request.get_json()
|
119 |
claim = data.get("claim", "no input")
|
120 |
time_range_option = data.get("time_range", "month")
|
121 |
-
system_start_time = datetime.now()
|
122 |
-
|
123 |
suggestion_meta = data.get("suggestion_meta")
|
124 |
pledge_date = data.get("pledge_date", "")
|
125 |
pledge_author = data.get("pledge_author", "")
|
@@ -168,8 +168,8 @@ def run_model():
|
|
168 |
df.to_json(json_path, orient="records", indent=2)
|
169 |
|
170 |
|
171 |
-
system_end_time = datetime.now()
|
172 |
-
|
173 |
runtime = system_end_time - system_start_time
|
174 |
|
175 |
events = df.to_dict(orient="records")
|
|
|
118 |
data = request.get_json()
|
119 |
claim = data.get("claim", "no input")
|
120 |
time_range_option = data.get("time_range", "month")
|
121 |
+
system_start_time = datetime.now().isoformat()
|
122 |
+
|
123 |
suggestion_meta = data.get("suggestion_meta")
|
124 |
pledge_date = data.get("pledge_date", "")
|
125 |
pledge_author = data.get("pledge_author", "")
|
|
|
168 |
df.to_json(json_path, orient="records", indent=2)
|
169 |
|
170 |
|
171 |
+
system_end_time = datetime.now().isoformat()
|
172 |
+
|
173 |
runtime = system_end_time - system_start_time
|
174 |
|
175 |
events = df.to_dict(orient="records")
|