Teoman21 commited on
Commit
197d424
·
1 Parent(s): 8ebe215

fix: fixed bool iterable issue

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -327,7 +327,7 @@ def _generate_chart(
327
  scatter_x: Optional[str],
328
  scatter_y: Optional[str],
329
  scatter_color: Optional[str],
330
- ) -> Tuple[Optional[mpl_fig.Figure], Optional[mpl_fig.Figure], str]:
331
  """Create a visualization based on user selections."""
332
  state = _ensure_state(state)
333
  try:
@@ -375,7 +375,7 @@ def _download_filtered(state) -> str:
375
  return temp.name
376
 
377
 
378
- def _download_chart(fig: Optional[mpl_fig.Figure]) -> str:
379
  """Export the most recent chart to PNG."""
380
  if fig is None:
381
  raise ValueError("Generate a visualization before exporting.")
 
327
  scatter_x: Optional[str],
328
  scatter_y: Optional[str],
329
  scatter_color: Optional[str],
330
+ ) -> Tuple[Any, Any, str]:
331
  """Create a visualization based on user selections."""
332
  state = _ensure_state(state)
333
  try:
 
375
  return temp.name
376
 
377
 
378
+ def _download_chart(fig: Any) -> str:
379
  """Export the most recent chart to PNG."""
380
  if fig is None:
381
  raise ValueError("Generate a visualization before exporting.")