7640 Commits

Author SHA1 Message Date
Abubakar Abid
fb8c1cb6d1
Move gr.Textbox lines logic to frontend (#10785)
* changes

* add changeset

* test

* fix max lines

* fix e2e test

* add changeset

* changes

* format

* warnings textbox

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2025-03-11 23:10:35 +00:00
Dawood
5dfff7ac7c first pass 2025-03-11 17:47:26 -04:00
Abubakar Abid
6fd7fe8b2c
changes (#10780) 2025-03-11 10:36:13 -07:00
Yuichiro Tachibana (Tsuchiya)
731ab92001
Autocompletion on code editor component (#10733)
* Update CodeMirror packages to use the autocompletion feature of lang-python

* Add autocomplete option to the Code component

* add changeset

* Add AutocompleteTheme

* Fix test

* Fix docstring

* Enable autocompletion on Playground

* add changeset

* add changeset

* Assign Tab to acceptCompletion

* Enable autocompletion in the playground mode of Lite apps

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com>
2025-03-11 19:51:29 +09:00
Abubakar Abid
3b483672f4
Allow navigating down from header cells, as well as support cmd/ctrl + arrow keys (#10777)
* keyboard

* add changeset

* format

* changes

* s

* changes

* changes

* format

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2025-03-11 09:57:05 +00:00
Col0ring
3232cddc00
fix: latex rendering of markdown (#10765)
* fix: latex rendering of markdown

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Dawood Khan <dawoodkhan82@gmail.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2025-03-11 01:05:24 +00:00
Pablo Speciale
9e5b0ca0f6
Update utils.py (#10773)
### Description

This pull request updates the `get_node_path` function in the `gradio/utils.py` file to handle scenarios where the `which` command is missing. The function has been improved by splitting the error handling into two separate `try` blocks for better granularity and robustness.

### Changes Made

- Split the `try` block into two separate `try` blocks for handling Windows and Unix-like systems.
- Added error handling for `FileNotFoundError` in addition to `subprocess.CalledProcessError`.

### Rationale

The original implementation did not properly handle the case when the `which` command is missing. This update ensures the function gracefully handles such scenarios and continues to check other possible locations for the `node` executable.
2025-03-10 17:37:52 -07:00
Abubakar Abid
85f6132f1f
Fix cell selection when using shift + arrow keys (#10776)
* changes

* add changeset

* changes

* add changeset

* remove console

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2025-03-10 14:39:55 -07:00
Hannah
c44b8f47b9
Add static_columns param for interactive dataframes (#10734)
* allow showing image sin dataframe with image component

* add scroll to top button

* add changeset

* fix truncated text issue + prevent truncating non-text data

* refactor with state mgmnt

* add changeset

* formatting

* tweaks

* tweak

* add e2e tests

* notebook

* more component extraction, move css to components

* type fixes

* test fixes

* fix test

* notebook

* add changeset

* fix tests

* fix test

* fix test

* remove misc.css file

* reset sort

* fix z-index over progress bar

* css tweak

* fix search and add search to e2e test

* fix keyboard reactivity issue

* add cell selection e2e tests

* z-index fixes

* ensure unique context ids

* fix row number bug

* frozen -> pinned

* pinned col border tweak

* pinned col fix when show_row_numbers is true

* header tweak

* fix pinned columns clash with column_widths

* add row test

* add static_cols param and test

* add changeset

* tweak

* fix tests

* test tweaks

* add row story

* tweaks

* fix test

* tweak

* redesign selection buttons

* fix test

* fix test

* fix test

* fix test

* edit demo with static cols

* change to list[int]

* cursor tweak

* fix test

* nb

* set col count to fixed if static_cols are set

* lint

* tweak demo

* fix col count logic

* add padlock icon

* fix py test

* lint

* fix test

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2025-03-10 19:10:36 +00:00
Dawood Khan
0ce7bfe1bd
Allow tags for chatbot models using gr.load (#10768)
* gr.load chatbot fix

* add changeset

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2025-03-09 05:26:50 -04:00
Abubakar Abid
4f431fda32
Add gradio sketch to quickstart (#10760)
* readme

* changes

* changes

* changes

* changes
2025-03-08 01:30:24 -08:00
aliabid94
dd2de17064
Fix windows path issue in FileExplorer (#10735)
* changes

* add changeset

* Update file_explorer.py

* add changeset

---------

Co-authored-by: Ali Abid <aliabid94@gmail.com>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2025-03-07 14:51:05 -08:00
Dawood Khan
3086343a68
Allow custom tags for chatbot (#10743)
* restyle

* style

* add changeset

* nested thoughts

* nested fix

* format

* allow_tags

* allow-tags for load

* undo

* add changeset

* allow custom tags

* format

* extract html tags into file

* add changeset

* changes

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2025-03-07 21:45:54 +00:00
Hannah
b4342d24a8
Fix dataframe search and filter functionality (#10757)
* store and update rows with indices value

* clean up search/filter logic and remove duplicate functions

* add changeset

* add make_headers tests

* simplify logic

* lint

* add changeset

* ts fixes

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2025-03-07 20:16:50 +00:00
Mywifi
fb997097bc
Raise exception when startup events fail due to inaccessible localhost (#10739)
Co-authored-by: vincent@mbp <vincent@macbook>
2025-03-07 06:37:53 -08:00
Hannah
b5ca1dcfdf
Refactor gr.Dataframe (#10631)
* allow showing image sin dataframe with image component

* add scroll to top button

* add changeset

* fix truncated text issue + prevent truncating non-text data

* refactor with state mgmnt

* add changeset

* formatting

* tweaks

* tweak

* add e2e tests

* notebook

* more component extraction, move css to components

* type fixes

* test fixes

* fix test

* notebook

* add changeset

* fix tests

* fix test

* fix test

* remove misc.css file

* reset sort

* fix z-index over progress bar

* css tweak

* fix search and add search to e2e test

* fix keyboard reactivity issue

* add cell selection e2e tests

* z-index fixes

* ensure unique context ids

* fix row number bug

* frozen -> pinned

* pinned col border tweak

* pinned col fix when show_row_numbers is true

* header tweak

* fix pinned columns clash with column_widths

* add row test

* tweak

* fix tests

* test tweaks

* add row story

* tweaks

* redesign selection buttons

* fix test

* fix test

* fix seach issue

* allow navigation with arrows when not in editing mode

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2025-03-07 10:52:18 +00:00
Gradio PR Bot
db0e09ce21
chore: update versions (#10717)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
@gradio/annotatedimage@0.9.10 @gradio/audio@0.17.4 @gradio/button@0.4.9 @gradio/chatbot@0.24.3 @gradio/client@1.13.1 @gradio/code@0.11.2 @gradio/core@0.12.1 @gradio/dataframe@0.16.5 @gradio/dataset@0.4.9 @gradio/downloadbutton@0.3.9 @gradio/file@0.12.9 @gradio/fileexplorer@0.5.20 @gradio/gallery@0.15.9 @gradio/image@0.21.4 @gradio/imageeditor@0.12.11 @gradio/lite@5.20.1 @gradio/model3d@0.14.4 @gradio/multimodaltextbox@0.9.10 @gradio/sidebar@0.1.6 @gradio/simpleimage@0.8.20 @gradio/sketchbox@0.6.1 @gradio/upload@0.15.4 @gradio/uploadbutton@0.8.9 @gradio/video@0.14.4 @gradio/wasm@0.17.4 @self/app@1.47.6 @self/component-test@0.5.10 gradio@5.20.1 website@0.52.0
2025-03-06 14:29:33 -08:00
Artem Kudisov
19411c6b15
Fix ClearButton (#10748)
* add deepcopy

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2025-03-06 13:52:45 -08:00
Dawood Khan
1cf992b042
Sidebar fixed positioning (#10737)
* return back to fixed positioning

* add changeset

* fix mobile double sidebars

* add changeset

* remove sidebar embedded demo

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2025-03-06 16:13:31 +00:00
Ali Abdalla
a89fa288f4
Add missing docs and fix gaps in website (#10744)
* fix filepath mention in custom css guide

* write and fix docs for event data classes

* add changeset

* Update js/_website/src/lib/templates/gradio/04_helpers/05_selectdata.svx

* Update js/_website/src/lib/templates/gradio/04_helpers/05_selectdata.svx

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2025-03-06 07:54:01 -08:00
Maxence Leguéry
116a866ffb
Add a demo for highlighting text in a pdf file for LLM RAG purposes (#10692)
* Add a demo for highlighting text in a pdf file for LLM RAG purposes

* Fix typo in path + demo rename

* generate notebooks

---------

Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com>
2025-03-06 03:20:23 -08:00
Rick van Hattem
2b3842066b
Changed warning stacklevel to improve warnings in console (#10732)
* Changed warning stacklevel to improve warnings in console

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2025-03-05 22:58:48 +00:00
aliabid94
16244f3c1c
Event Listeners in gradio sketch (#10694)
* changes

* add changeset

* changes

* changes

* changes

* changes

* changes

* chagnes

* add changeset

* changes

* fix sidebar visible false

* add changeset

* changes

---------

Co-authored-by: Ali Abid <aliabid94@gmail.com>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2025-03-05 01:39:45 -08:00
Abubakar Abid
9fce28b76b
Allow sending a custom TLS certificate or no TLS certificate when connecting to custom share servers (#10728)
* changes

* changes

* add changeset

* changes

* add changeset

* fix

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2025-03-04 23:11:31 +00:00
Abubakar Abid
17ffdd26c2 cset 2025-03-04 14:22:12 -08:00
aliabid94
b710d7cf13
Fix error display (#10719)
* changes

* add changeset

* format

---------

Co-authored-by: Ali Abid <aliabid94@gmail.com>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2025-03-04 14:17:13 -08:00
Abubakar Abid
2248005b10
Add pwa and enable_monitoring parameters to mount_gradio_app (#10720)
* changes

* add changeset

* format

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2025-03-04 14:16:57 -08:00
Abubakar Abid
667f8a1f82
Fix Chatbot avatar image position (#10724)
* pending

* add changeset

* changes

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2025-03-04 21:23:06 +00:00
Anirban Basu
b3ac430d5e
fix: Check for Node.js path only if SSR mode is true. (#10721)
* fix: Fixes https://github.com/gradio-app/gradio/issues/10711.

* add changeset

* chore: Fixed the formatting.

See: https://github.com/gradio-app/gradio/pull/10721#pullrequestreview-2655514471

* fix: Corrected change set label.

* chore: Formatting fix for gradio/blocks.py

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2025-03-04 03:11:45 +00:00
Péter Gyarmati
5faa2a34cc
chore: bump Pyodide version to 0.27.3 (#10706)
* chore: bump Pyodide version to 0.27.3

* add changeset

* chore: remove `packageManager` from package.json

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2025-03-04 01:44:26 +09:00
Gradio PR Bot
54fd90703e
chore: update versions (#10700)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
@gradio/annotatedimage@0.9.9 @gradio/audio@0.17.3 @gradio/button@0.4.8 @gradio/chatbot@0.24.2 @gradio/client@1.13.0 @gradio/code@0.11.1 @gradio/core@0.12.0 @gradio/dataframe@0.16.4 @gradio/dataset@0.4.8 @gradio/downloadbutton@0.3.8 @gradio/file@0.12.8 @gradio/fileexplorer@0.5.19 @gradio/gallery@0.15.8 @gradio/image@0.21.3 @gradio/imageeditor@0.12.10 @gradio/lite@5.20.0 @gradio/model3d@0.14.3 @gradio/multimodaltextbox@0.9.9 @gradio/simpleimage@0.8.19 @gradio/upload@0.15.3 @gradio/uploadbutton@0.8.8 @gradio/video@0.14.3 @self/app@1.47.5 @self/component-test@0.5.9 gradio@5.20.0 website@0.51.0
2025-02-28 14:02:29 -08:00
Gradio PR Bot
87820551ee
chore: update versions (#10693)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-02-28 13:16:35 -08:00
Ali Abdalla
92d5ac8e67
Static llms.txt route on the website (#10677)
* create route

* add changeset

* formatting

* fix

* fix

* actually fix

* formatting

* try with cloudflare adapter?

* test

* damn

* using cloudflare adapter properly

* formatting

* please

* ??

* ???

* test

* fix

* fix

* ????

* lockfile

* do just static instead

* add changeset

* remove instructions

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2025-02-28 21:10:34 +00:00
Abubakar Abid
16d419b9f1
Allow functions that solely update component properties to run in the frontend by setting js=True (#10500)
* changes

* add changeset

* revert

* changes

* add changeset

* changes

* fe changse

* notebook

* changes

* fix fe

* changes

* add changeset

* change

* add changeset

* notebook

* add tests

* changes

* changes

* changes

* changes

* changes

* type

* changes

* changes

* changes

* notebooks

* fix

* fix

* changes

* changes

* changes

* changes

* changes

* notebooks

* changes

* revert

* changes

* changes

* changes

* notebook

* changes

* done

* changes

* add changeset

* update

* changes

* add changeset

* added a guide

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2025-02-28 12:45:20 -08:00
Ali Abdalla
9b6a29253f
revert ci (#10697) 2025-02-27 21:28:13 -08:00
Ali Abdalla
ef24736d01
pin to 3.5 (#10695) 2025-02-27 17:56:04 -08:00
Abubakar Abid
bd982df85b
Change gr.load chatinterface behavior to streaming (#10688)
* change chatbot to streaming

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2025-02-27 09:59:47 -08:00
Ali Abdalla
dfda39fdba
figured it out (#10689) 2025-02-26 22:10:38 -08:00
Ali Abdalla
be1844f420
fix (#10687) 2025-02-26 21:49:47 -08:00
Ali Abdalla
2fc2f530c5
fix typo (#10686) 2025-02-26 21:11:53 -08:00
Ali Abdalla
3a7beea0a0
change upload paths in ci (#10685) 2025-02-26 20:47:14 -08:00
Gradio PR Bot
13c6b61ea1
chore: update versions (#10674)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
@gradio/chatbot@0.24.1 @gradio/core@0.11.1 @gradio/dropdown@0.9.13 @gradio/lite@5.19.0 @self/app@1.47.4 gradio@5.19.0 website@0.50.3
2025-02-26 16:29:46 -08:00
XcantloadX
36309ea55f
Automatically restore last scroll position in multiple-choice dropdowns (#10659)
* fix: automatically restore last scroll position in mutiple-choice dropdown (#10350)

* add changeset

* fix typing

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Dawood Khan <dawoodkhan82@gmail.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2025-02-27 00:03:32 +00:00
Dawood Khan
367fe14381
Fix chatbot share button payload too large (#10683)
* chatbot share link formatting

* add changeset

* Update utils.ts

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2025-02-26 17:21:31 -05:00
Abubakar Abid
374b762b7f
Support gr.LoginButton for gr.load() (#10577)
* changes

* add changeset

* tests

* changes

* type

* changes

* format

* updates

* testing

* changes

* changes

* cache false

* prints

* changes

* add providers

* format

* changes

* changes

* changes

* remove warning

* format

* changes

* changes

* add error

* add error

* refactor

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2025-02-26 22:19:14 +00:00
Abubakar Abid
249eccd81a
Fix Dataframe header type to allow integer values (#10678)
* change

* add changeset

* generify

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2025-02-26 20:15:20 +00:00
Hai Handsome
cb3c76205c
Add Thai Translate (#10679)
* Add Thai Translate

* add changeset

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2025-02-26 11:11:24 -08:00
Abubakar Abid
b43200d7df
Custom styling of the dataframe (#10647)
* changes

* add changeset

* revert

* done

* add changeset

* changes

* notebook

* documentation

* guide

* guide

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2025-02-25 14:51:01 -08:00
Bryce Guinta
68a6baa83c
Update 03_state-in-blocks.md (#10672)
* Update 03_state-in-blocks.md

https://github.com/gradio-app/gradio/issues/10263

* update note

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2025-02-25 11:47:30 -08:00
Abubakar Abid
a15964db87
Update banner to point to FastRTC (#10670)
* banner

* library

* add changeset

* add changeset

* format

* format

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2025-02-25 09:10:11 -08:00