Spaces:
Sleeping
Sleeping
mattritchey
commited on
Commit
•
b6f337f
1
Parent(s):
809b57b
Update main.py
Browse files
main.py
CHANGED
@@ -110,12 +110,12 @@ def get_data(address, start_date, end_date, radius_miles, get_max):
|
|
110 |
|
111 |
df_data = df_data.reindex(date_range_days, fill_value=0).reset_index().rename(
|
112 |
columns={'index': 'Date'})
|
113 |
-
df_data['Date'] = df_data['Date'].dt.strftime('%Y-%m-%d')
|
114 |
|
115 |
return df_data
|
116 |
|
117 |
|
118 |
-
@app.get('/
|
119 |
async def predict(address: str, start_date: str, end_date: str, radius_miles: int, get_max: bool):
|
120 |
|
121 |
try:
|
|
|
110 |
|
111 |
df_data = df_data.reindex(date_range_days, fill_value=0).reset_index().rename(
|
112 |
columns={'index': 'Date'})
|
113 |
+
df_data['Date'] = df_data['Date'].dt.strftime('%Y-%m-%d:%H')
|
114 |
|
115 |
return df_data
|
116 |
|
117 |
|
118 |
+
@app.get('/APCP_Docker_Data')
|
119 |
async def predict(address: str, start_date: str, end_date: str, radius_miles: int, get_max: bool):
|
120 |
|
121 |
try:
|