rosacastillo commited on
Commit
ba5b7fa
·
1 Parent(s): 24a8076

Fix missing return

Browse files
Files changed (2) hide show
  1. app.py +3 -1
  2. tabs/tool_accuracy.py +1 -1
app.py CHANGED
@@ -86,7 +86,7 @@ def get_last_one_month_data():
86
 
87
  def get_all_data():
88
  """
89
- Get all data from the tools.parquet and all_trades_profitability.parquet files
90
  """
91
  logger.info("Getting all data")
92
  con = duckdb.connect(":memory:")
@@ -130,6 +130,8 @@ def prepare_data():
130
  trades_df = prepare_trades(trades_df)
131
 
132
  tools_accuracy_info = compute_weighted_accuracy(tools_accuracy_info)
 
 
133
 
134
  return tools_df, trades_df, tools_accuracy_info
135
 
 
86
 
87
  def get_all_data():
88
  """
89
+ Get all data from the tools.parquet, tools_accuracy and all_trades_profitability.parquet files
90
  """
91
  logger.info("Getting all data")
92
  con = duckdb.connect(":memory:")
 
130
  trades_df = prepare_trades(trades_df)
131
 
132
  tools_accuracy_info = compute_weighted_accuracy(tools_accuracy_info)
133
+ print("weighted accuracy info")
134
+ print(tools_accuracy_info.head())
135
 
136
  return tools_df, trades_df, tools_accuracy_info
137
 
tabs/tool_accuracy.py CHANGED
@@ -48,4 +48,4 @@ def plot_tools_weighted_accuracy_graph(tools_accuracy_info: pd.DataFrame):
48
  dodge=False,
49
  )
50
  # Display the plot using gr.Plot
51
- gr.Plot(value=plot.get_figure())
 
48
  dodge=False,
49
  )
50
  # Display the plot using gr.Plot
51
+ return gr.Plot(value=plot.get_figure())