Commit Graph

6851 Commits

Author SHA1 Message Date
Abubakar Abid
f8ccb5e663
Make update_root_in_config atomic (#8867)
* root

* format

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-07-24 12:51:28 -07:00
Freddy Boulton
f0a336608d
upload (#8882) 2024-07-24 15:11:40 -04:00
meg
df770608fc
pnpm link deprecated (#8886)
Appears that the given pnpm like no longer exists.
Suggesting a more generic one.
2024-07-24 15:35:25 +00:00
Hannah
67c08bfb9e
Fix file uploading in iOS (#8879)
* use * for file/* in ios

* add changeset

* add changeset

* tweak

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-07-24 16:28:21 +01:00
valgai
ac132e3cbc
Support the use of custom authentication mechanism, timeouts, and other httpx parameters in Python Client (#8862)
* gradio Client now supports the use of custom authentication mechanism with httpx

* Fix formatting issues

* Replace specific parameter `httpx_auth` by a more general parameter `httpx_kwargs`.

* add changeset

* typing

* future

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-07-23 21:44:00 +00:00
Ali Abdalla
7f1a78c49e
Add confirmation dialogue if leaving playground (#8871)
* add dialogue

* remove

* add changeset

* add changeset

* share button logic

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-07-23 21:35:44 +00:00
pngwn
70b45f4587
chore: update versions (#8777)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-07-22 13:28:00 -07:00
pngwn
76c1759350
add space header (#8846)
* add space header

* format

* add changeset

* test

* fix

* fix

* fixy

* fixy

* fix demons

* silly me

* format

* format + fix

* fix test

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-07-22 19:47:14 +00:00
JacobLinCool
5050b36221
fix: wrong named param check for js client (#8820)
* fix: wrong named param check for js client

* rearrange type imports

* add changeset

* fix: workaround for undefined endpoint_info

---------

Co-authored-by: Hannah <hannahblair@users.noreply.github.com>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-07-22 19:57:22 +01:00
Dawood Khan
2f630abf53
Chatbot Examples Scroll Fix (#8865)
* fix

* add changeset

* fix

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-07-22 11:27:24 -07:00
Hannah
16b820038d
Fix gr.Image height inconsistencies (#8852)
* * prevent source selection cut off
* add height:100% to image-container
* ensure elements are centered

* add changeset

* add changeset

* change cover to contain

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-07-22 11:27:06 -07:00
aliabid94
a238af4d68
Refactor plots to drop altair and use vega.js directly (#8807)
* changes

* add changeset

* changes

* changes

* changes

* add changeset

* changes

* add changeset

* changes

* add changeset

* add changeset

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* add changeset

* changes

* changes

* Update gradio/components/native_plot.py

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>

* Update gradio/components/native_plot.py

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>

* Update gradio/blocks.py

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>

* changes

* changes

* changes

* Update gradio/components/native_plot.py

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>

* Update gradio/components/native_plot.py

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>

* changes

* changes

* 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>
2024-07-22 09:52:48 -07:00
Hannah
914b1935de
Add copy button to gr.Markdown (#8851)
* add copy button

* add changeset

* add changeset

* lint

* value tweak

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-07-22 12:39:20 +01:00
Abubakar Abid
5622331da7
Extend pyright to cover tests as well (#8856)
* add type to test

* ignore certain demos

* notebooks

* type test_video

* more typing

* more typing

* more typing

* add changeset

* more typing

* more

* more

* files

* ds

* ds

* plots

* audio
push

* annotated

* utils

* routes

* iface

* server

* restore

* external

* dep

* components

* chat interface

* fixes

* blocks

* blocks

* blocks

* blocks

* fixes

* fixes

* format

* fix

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-07-21 19:55:18 -07:00
Maciek
02cf173775
Minor QuickStart changes. Dead link change and typo removal (#8859) 2024-07-21 06:31:09 -07:00
Abubakar Abid
d1f044145a
Use covariant container types across the codebase and add typing to our demos (#8854)
* more typing

* add changeset

* tweaks

* more changes

* more fixes

* more changes

* more fixes

* more fixes

* delete

* add changeset

* notebooks

* restore

* restore

* format

* add changeset

* more typing fixes

* fixes

* change

* fixes

* fix

* format

* more fixes

* fixes

* fixes for python3.9

* demo

* fix

* fixes

* fix typo

* type

* formatting

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: aliabd <ali.si3luwa@gmail.com>
2024-07-19 18:34:34 -07:00
Ali Abdalla
38c2ad425a
Add website to contributing readme (#8842)
* remove empty readme

* add contributing

* add changeset

* add pnpm i

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-07-19 21:58:59 +00:00
Hannah
9ee6839f94
Change optionality of the data param in submit + predict (#8816)
* add initialiser to data

* tweak submit

* add changeset

* type fixes

* ruff lint

* fix test

* Revert "fix test"

This reverts commit 5d01b5c95b.

* Revert "ruff lint"

This reverts commit 2c8e518a75.

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-07-19 15:47:31 +01:00
Abubakar Abid
0d76169e46
upgrade pyright==1.1.372 (#8837)
* upgrade typing

* more fixes

* add stubs folder

* add changeset

* fix docstring

* docstring

* type

* fix tests

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-07-19 00:21:51 -07:00
Abubakar Abid
7e8c829aad
Add .input() events to gr.Audio and gr.Image (#8836)
* add input

* format

* add changeset

* add changeset

* add audio browser tests

* add browser tests

* notebooks

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-07-18 23:17:13 -07:00
Dawood Khan
3a81fb2578
Latex Rendering Fix (#8822)
* latex

* add changeset

* delimiters fix

* change

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-07-18 21:15:43 -04:00
pngwn
e75f2ca2da
Fix build for pre-release (#8832)
* Update vite.config.ts

* add changeset

* fix thing

* Fix website pre (#8833)

* fix website

* fix website pre

* cleanup condition

* cleanup condition again

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-07-18 11:25:50 +00:00
pngwn
356e961a17
fix (#8830) 2024-07-18 10:56:03 +01:00
Ali Abdalla
b45d37f366
Fix param table rendering (#8825)
* fix

* add changeset

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-07-17 23:36:59 -07:00
Yuichiro Tachibana (Tsuchiya)
61bb5883a2
Remove Pydantic v2 patch from Lite (#8799)
* Remove Pydantic v2 patch as it's now natively provided by Pyodide>=0.26.1 (ref: https://github.com/pyodide/pyodide/pull/4500)

* add changeset

* add changeset

* Fix

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-07-18 10:39:40 +09:00
Michael
2cc813a287
Fix OS detection for cross-browser compatibility (#8784)
* chore: add .python-version to .gitignore

* fix(get_os): ensure compatibility across all browsers

* format

* chore: add ts ignore comment again

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com>
2024-07-17 15:51:36 -07:00
Hannah
6073736651
Document FileData class in docs (#8757)
* expose class + add docs

* add filedata section

* add changeset

* * add example usage
* expose FileData in Python client

* add changeset

* format

* tweaks

* tweaks

* fix test

* lint

* ruff lint

* lint again

* revert test

* remove desc from schema

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-07-17 12:23:19 -07:00
Yuichiro Tachibana (Tsuchiya)
e36bab77e5
Refactoring loadPyodide typing (#8775)
* Refactoring loadPyodide typing

* add changeset

* Fix

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-07-17 12:18:47 -07:00
Yuichiro Tachibana (Tsuchiya)
2de9a97ae9
Refactoring <gradio-lite /> component making the code simpler and fixing a Playground mode bug (#8693) (#8818)
* Create <LiteIndex /> component that contains the initialization logic and manages <Index /> and <Playground />

* add changeset

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-07-17 12:17:11 -07:00
Ali Abdalla
7b049e0357
Fix DateTime docs (#8823)
* fix

* add changeset

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-07-17 19:15:45 +00:00
Ali Abdalla
cea3bf9900
Fix dependency loop with statustracker and markdown (#8821)
* fix loop

* add changeset

* add changeset

* format

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-07-17 18:55:45 +00:00
pngwn
e1a404093c
Ensure all upload components have consistent upload regions. (#8803) 2024-07-17 17:37:25 +01:00
Abubakar Abid
34510db468
Allow HTML in alert modals (#8817)
* success

* add changeset

* add changeset

* link styling

* sanitize

* format

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-07-17 08:33:14 -07:00
Abubakar Abid
7f41567e9c
Use constant-time comparison when checking user provided analytics key (#8809)
* constant-time comparison when comparing hashes

* add changeset

* add changeset

* use route utils

* format

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-07-17 12:21:29 +00:00
Abubakar Abid
a3d23b43e7
Add loop parameters to gr.Audio and gr.Video (#8806)
* add loop

* changes

* add changeset

* audio player

* fix tests

* test audio

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-07-16 22:05:59 -07:00
Yuichiro Tachibana (Tsuchiya)
1d09925469
Fix Lite's <Playground /> (#8804)
* Fix Playground.svelte to use BaseCode instead of Code

* Remove unnecessary <div>s

* Fix typing error_display

* Make <Code>'s readonly prop reactive and fix <Playground /> to use it

* Fix to attach the event listener to a specific DOM element in the <Playground \> component

* Remove unused line

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-07-17 10:18:09 +09:00
Abubakar Abid
aa4b7a7192
Improve styling of parameter tables in the docs (#8618)
* param table

* add changeset

* add changeset

* format

* add changeset

* styling changes

* rename initialization to parameters

* event listener styling

* remove

* add changeset

* fixes

* format

* changes

* changes

* revert svx

* add changeset

* revert svx

* revert

* changes

* changes

* functiondoc

* undo

* format

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-07-16 15:53:04 -07:00
pngwn
7b19474cb2
Ensure ImageEditor brush color can be updated with gr.update (#8802)
* fix brush

* add changeset

* fix brush

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-07-16 19:43:29 +01:00
Abubakar Abid
b0aa87c782
Update trigger-checks.yml (#8798) 2024-07-15 20:00:35 -07:00
Ali Abdalla
0b9e870f9c
Hide embedded components while loading (#8773)
* styling

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-07-15 19:12:34 +00:00
Abubakar Abid
4030f28af6
Allows updating the dataset of a gr.Examples (#8745)
* helpers

* add changeset

* changes

* add changeset

* changes

* tweak

* format

* example to docs

* add changeset

* fixes

* add tuple

* add changeset

* print

* format

* clean'

* clean

* format

* format backend

* fix backend tests

* format

* notebooks

* comment

* delete demo

* add changeset

* docstring

* docstring

* changes

* add changeset

* components

* changes

* changes

* format

* add test

* fix python test

* use deep_equal

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-07-15 09:19:52 -07:00
Yuichiro Tachibana (Tsuchiya)
2d179f647b
Set the default format of gr.Plot as png for Wasm mode (#8774)
* Set the default format of gr.Plot as png for Wasm mode

* add changeset

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-07-14 18:33:03 +09:00
Ali Abdalla
13f4cf899f
fixed (#8770) 2024-07-12 23:56:25 +00:00
pngwn
d51dd2ce17
chore: update versions (#8767)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-07-12 12:48:12 -07:00
pngwn
2b4636e75c
Fix width of assistant's chatbot bubble (#8766)
* fix width

* add changeset

* format

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-07-12 19:38:26 +00:00
pngwn
1b74e214b9
chore: update versions (#8663)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-07-12 11:54:28 -07:00
pngwn
26cdd0ffe0
Revert chatbot styling (#8758)
* fix

* fix

* add changeset

* add changeset

* tests

* Fix button panel (#8762)

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com>
2024-07-12 18:35:08 +01:00
pngwn
078663a3a4
Fix issue with virtual module in custom components (#8761)
* fix bug

* add changeset

* fix really

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-07-12 18:34:41 +01:00
pngwn
1e8f31b09a
fix (#8764) 2024-07-12 18:21:47 +01:00
pngwn
c1ecfde50e
8394 df hidden items (#8763)
* fix bug

* fix

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-07-12 18:19:43 +01:00