Skip to content

Commit

Permalink
Merge pull request #57 from statgarten/ktr
Browse files Browse the repository at this point in the history
fix : time series forecasting frontend & backend
  • Loading branch information
MinDongRyul authored Nov 15, 2023
2 parents 3a8a60f + 02088ba commit 66275df
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions fastapi_backend/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -393,6 +393,7 @@ def additional_pred(model, input_sequense, num_features, scaler, device):
# training
@app.post("/time_train")
async def time_train_endpoint(data_arranges:list[str],
file_ext: str = Form(...),
pred_col: str = Form(...),
date: str = Form(...),
window_size: int = Form(...),
Expand Down
6 changes: 4 additions & 2 deletions streamlit_frontend/time_series_forecasting.py
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,9 @@ def main():
with open('timeseries_sample_data/timeseries_forecasting_sample_data.csv', mode = 'rb') as f:
csv_file_obj = io.BytesIO(f.read())
csv_files = {'file': csv_file_obj}


file_ext = 'csv'

date_column, pred_column = st.columns(2)

with date_column:
Expand Down Expand Up @@ -449,4 +451,4 @@ def main():

# For running this file individually
# if __name__ == "__main__":
# app()
# app()

0 comments on commit 66275df

Please sign in to comment.