Skip to content

Commit

Permalink
Merge branch 'main' into fix-login
Browse files Browse the repository at this point in the history
  • Loading branch information
abidlabs authored Oct 15, 2024
2 parents ac6b197 + c45b466 commit 21a46dd
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/khaki-sites-bow.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"gradio": patch
---

fix:Fix progress bar compatibility with generators
6 changes: 6 additions & 0 deletions .changeset/silver-banks-add.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@gradio/dataframe": patch
"gradio": patch
---

fix:fix table type check
2 changes: 1 addition & 1 deletion gradio/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -764,7 +764,7 @@ def tqdm(
self.iterables.append(new_iterable)
callback(self.iterables)
return self
length = len(iterable) if hasattr(iterable, "__len__") else None # type: ignore
length = len(iterable) if hasattr(iterable, "__len__") else total # type: ignore
self.iterables.append(
TrackedIterable(iter(iterable), 0, length, desc, unit, _tqdm)
)
Expand Down
2 changes: 1 addition & 1 deletion gradio/queueing.py
Original file line number Diff line number Diff line change
Expand Up @@ -646,7 +646,7 @@ async def process_events(
event,
ProcessCompletedMessage(
output=content,
title=content["title"], # type: ignore
title=content.get("title", "Error"), # type: ignore
success=False,
),
)
Expand Down
2 changes: 2 additions & 0 deletions js/dataframe/shared/Table.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -1005,6 +1005,8 @@
x={active_header_menu.x}
y={active_header_menu.y}
row={-1}
on_add_row_above={() => add_row_at(active_cell_menu?.row ?? -1, "above")}
on_add_row_below={() => add_row_at(active_cell_menu?.row ?? -1, "below")}
on_add_column_left={() => add_col_at(active_header_menu?.col ?? -1, "left")}
on_add_column_right={() =>
add_col_at(active_header_menu?.col ?? -1, "right")}
Expand Down

0 comments on commit 21a46dd

Please sign in to comment.