mattritchey commited on
Commit
a80148e
1 Parent(s): 80d3325

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +4 -4
main.py CHANGED
@@ -123,8 +123,8 @@ def get_data(address, start_date, end_date, radius_miles, get_max):
123
  columns={'index': 'Date'})
124
  df_data['Date'] = df_data['Date'].dt.strftime('%Y-%m-%d:%H')
125
 
126
- # return df_data
127
- return lat, lon, row, col
128
 
129
  @app.get('/APCP_Docker_Data')
130
  async def predict(address: str, start_date: str, end_date: str, radius_miles: int, get_max: bool):
@@ -135,6 +135,6 @@ async def predict(address: str, start_date: str, end_date: str, radius_miles: in
135
  except:
136
  results = pd.DataFrame({'Date': ['error'], 'APCP_max': ['error']})
137
 
138
- # return results.to_json()
139
- return results
140
 
 
123
  columns={'index': 'Date'})
124
  df_data['Date'] = df_data['Date'].dt.strftime('%Y-%m-%d:%H')
125
 
126
+ return df_data
127
+ # return lat, lon, row, col
128
 
129
  @app.get('/APCP_Docker_Data')
130
  async def predict(address: str, start_date: str, end_date: str, radius_miles: int, get_max: bool):
 
135
  except:
136
  results = pd.DataFrame({'Date': ['error'], 'APCP_max': ['error']})
137
 
138
+ return results.to_json()
139
+ # return results
140