cyberosa commited on
Commit
a8cd875
·
1 Parent(s): 296080f

updating app

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -65,21 +65,21 @@ def load_all_data():
65
 
66
  # all trades profitability
67
  # Download the compressed file
68
- gz_file_path_trades = hf_hub_download(
69
  repo_id="valory/Olas-predict-dataset",
70
  filename="all_trades_profitability.parquet.gz",
71
  repo_type="dataset",
72
  )
73
 
74
- parquet_file_path_trades = gz_file_path_trades.replace(".gz", "")
75
- parquet_file_path_trades = parquet_file_path_trades.replace("all", "")
76
 
77
- with gzip.open(gz_file_path_trades, "rb") as f_in:
78
- with open(parquet_file_path_trades, "wb") as f_out:
79
  shutil.copyfileobj(f_in, f_out)
80
 
81
  # Now read the decompressed parquet file
82
- df1 = pd.read_parquet(parquet_file_path_trades)
83
 
84
  # closed_markets_div
85
  closed_markets_df = hf_hub_download(
 
65
 
66
  # all trades profitability
67
  # Download the compressed file
68
+ gz_filepath_trades = hf_hub_download(
69
  repo_id="valory/Olas-predict-dataset",
70
  filename="all_trades_profitability.parquet.gz",
71
  repo_type="dataset",
72
  )
73
 
74
+ parquet_filepath_trades = gz_filepath_trades.replace(".gz", "")
75
+ parquet_filepath_trades = parquet_filepath_trades.replace("all", "")
76
 
77
+ with gzip.open(gz_filepath_trades, "rb") as f_in:
78
+ with open(parquet_filepath_trades, "wb") as f_out:
79
  shutil.copyfileobj(f_in, f_out)
80
 
81
  # Now read the decompressed parquet file
82
+ df1 = pd.read_parquet(parquet_filepath_trades)
83
 
84
  # closed_markets_div
85
  closed_markets_df = hf_hub_download(