Commit Graph

6667 Commits

Author SHA1 Message Date
aliabid94
82f5cb4bb0
changes (#8421)
Co-authored-by: Ali Abid <aliabid94@gmail.com>
2024-05-30 14:18:47 -07:00
aliabid94
1a124d95d7
More gr.render content (#8418)
* changes

* Update 04_dynamic-apps-with-render-decorator.md

---------

Co-authored-by: Ali Abid <aliabid94@gmail.com>
2024-05-30 14:15:35 -07:00
Ali Abdalla
5c6d4c4083
Fixes to Website Demo Upload Script (#8419)
* try except and creating api once

* fix script

* pin hub versin

* remove test demos
2024-05-30 17:07:52 -04:00
aliabid94
227de35298
Fix spaces load error (#8415)
* changes

* add changeset

* changes

---------

Co-authored-by: Ali Abid <aliabid94@gmail.com>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-05-30 13:52:50 -07:00
pngwn
b67f7ff8f9
chore: update versions (#8348) 2024-05-30 00:00:00 +01:00
Ali Abdalla
5efd35c7a0
Editable Docs (#8403)
* docs intro page and guides

* python library docs and js client

* reorg

* changes

* add better hovering

* fix broken version routing

* add redirects and remove duplicate pages

* fix build issues

* fix issues

* formatting

* add changeset

* working templates for all components

* add other pages

* merge

* merge

* changes

* changes

* working from templates

* changes

* refactoring

* changes

* build working

* formatting

* importing meta globs

* add uploading templates to ci

* fixes

* add changeset

* remove fake version

* fix

* ignore

* formatting

* adding render page to docs

* add changeset

* formatting fix

* typo

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-05-29 18:26:54 -04:00
aliabid94
d8fe958816
changes (#8411)
Co-authored-by: Ali Abid <aliabid94@gmail.com>
2024-05-29 15:12:48 -07:00
Dylan Ebert
aebd2e952e
Model3D right-handed coordinate system (#8376) 2024-05-29 22:59:29 +01:00
Freddy Boulton
e86dd01b6e
Connect heartbeat if state created in render. Also fix config cleanup bug #8407 (#8408)
* Add code

* add changeset

* add changeset

* lint

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-05-29 17:49:03 -04:00
aliabid94
8028c33bbc
Render decorator documentation (#8409)
* changes

* changes

* add changeset

* fix dependency loop and documentation group

* add changeset

* changes

* fix numbered list

* 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: aliabd <ali.si3luwa@gmail.com>
2024-05-29 14:13:51 -07:00
aliabid94
945ac837e7
Improve rendering (#8398)
* changes

* add changeset

* changes

* changes

* changes

* changes

* changes

* changes

* changeas

* changes

* add changeset

* changes

* add changeset

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* add changeset

* changes

* cganges

* changes

* changes

* changes

* changes

* add changeset

* changes

* chagnes

* changes

* changes

* changes

* changes

* changes

* js

* remove console log

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* add changeset

* changes

* chnages

* changes

* cnages

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* add changeset

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* add changeset

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* add changeset

* Add `state.change` listener (#8297)

* state changes

* changes

---------

Co-authored-by: Ali Abid <aliabid94@gmail.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>

* changes

* changes

* add changeset

* changes

* changes

* changes

* changes

* changes

* changes

* updates

* changes

* add changeset

* changes

* changes

* add changeset

* fix

* changes

* changes

* changes

* changes

* changes

* changes

* 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>
2024-05-29 11:24:57 -07:00
Hannah
d078621928
Add CDN installation to JS docs (#8401)
* add cdn copy

* add changeset

* tweak

* tweak

* add changeset

* Update guides/08_gradio-clients-and-lite/02_getting-started-with-the-js-client.md

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

* remove version from cdn link

* tweak

* tweak

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-05-29 18:11:29 +00:00
Hannah
89d6a176b3
Change z-index of status tracker (#8372)
* change z-index of status tracker

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-05-29 18:12:23 +01:00
Freddy Boulton
97ac79bf56
Fix bug in reload mode equality check. Better equality conversion for state variables (#8385)
* Add code

* Add deep equality

* add changeset

* Add code

* add changeset

* Update gradio/utils.py

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

* Add code

* Add code

* add code

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-05-29 10:46:09 -04:00
Freddy Boulton
e738e26a5d
Include instructions on starting from someone else's custom component repository (#8386)
* Add guide

* add changeset

* Fix link

* add changeset

* Add code

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-05-28 19:14:23 +00:00
Freddy Boulton
a373b0edd3
Set orig_name in python client file uploads (#8371)
* Add code

* add changeset

* URL case

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Hannah <hannahblair@users.noreply.github.com>
2024-05-27 11:26:52 -04:00
Xu Song
24ab22d261
Fix encoding error (#8381) 2024-05-27 08:50:47 +00:00
Ikko Eltociear Ashimine
3fbf2e8e70
chore: update docs.py (#8378)
* chore: update docs.py

Documention -> Documentation

* add changeset

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-05-27 04:50:05 +00:00
Hannah
3bed8d390b
tweaks (#8374) 2024-05-24 20:56:35 +01:00
Hannah
41ea400db0
Include JS Client package in CI for PR testing (#8362)
* add js client pkg action

* test

* Revert "test"

This reverts commit 575bcfca1b.
2024-05-24 09:51:22 +01:00
Hannah
6a1b58cf3e
Add --table-text-color var to fix body text in Examples (#8364)
* add --table-text-color var

* add changeset

* format

* tweak

* add changeset

* fix

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-05-24 00:16:44 +01:00
Abubakar Abid
94a1143686
Add allow-credentials to preflight header (#8363)
* add allow-credentials to preflight header

* add changeset

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-05-23 07:21:19 -07:00
Xu Song
33e8babb17
Enable hiding the inline category in HighlightedText with a show_inline_category argument (#8355)
* Enable hidding inline_category in HighlightedText

* add changeset

* Update test_highlighted_text.py

* add changeset

* Update gradio/components/highlighted_text.py

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

* add story

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: Hannah <hannahblair@users.noreply.github.com>
2024-05-23 09:17:41 +00:00
aliabid94
55f664f297
Add event listener support to render blocks (#8243)
* changes

* add changeset

* changes

* changes

* changes

* changes

* changes

* changes

* changeas

* changes

* add changeset

* changes

* add changeset

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* add changeset

* changes

* cganges

* changes

* changes

* changes

* changes

* add changeset

* changes

* chagnes

* changes

* changes

* changes

* changes

* changes

* js

* remove console log

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* add changeset

* changes

* chnages

* changes

* cnages

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* add changeset

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* add changeset

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* add changeset

* Add `state.change` listener (#8297)

* state changes

* changes

---------

Co-authored-by: Ali Abid <aliabid94@gmail.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>

* changes

* changes

* add changeset

* changes

* changes

* changes

* 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-05-22 14:51:53 -07:00
Hannah
1f8e5c44e0
Improve URL handling in JS Client (#8258)
* amend endpoint logic

* add changeset

* improve url joining for local URLs

* handle relative paths

* use join_urls in /info  to ensure correct endpoints

* add relative url logic and throw error for node

* tweaks

* remove relative paths support (wont work)

* tweak

* tweak func to throw error and amend tests

* tweak

* accomodate . in space names

* replace error with const msg

* tweak tests with error var

* revert map() to reduce() due to misinterpreted base URL

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-05-22 18:47:29 +01:00
pngwn
881f0a9e2c
Remove changeset (#8359)
* fix param name

* format

* fix
2024-05-22 10:10:22 +00:00
renovate[bot]
fe3e03abdc
chore(deps): update dependency iframe-resizer to v5 (#8347)
* chore(deps): update dependency iframe-resizer to v5

* add changeset

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-05-22 11:06:07 +01:00
Hannah
ab65360804
Allow JS Client to work with authenticated spaces 🍪 (#8299)
* get cookie from /login and apply to fetch requests in connect + duplicate funcs

* add error msg

* add tests

* improve error msgs

* remove unused var

* add changeset

* remove comment

* add error msg

* add private space test

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-05-22 11:02:56 +01:00
Hannah
2d705bcf74
Add body color to gr.Accordion (#8284)
* add color to body

* add changeset

* add accordion_text_color var

* change default to body_text_color

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-05-21 23:52:38 +01:00
pngwn
fe91e10269
chore: update versions (#8335)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-05-21 21:01:35 +00:00
pngwn
6d3aa5fa93
Cs fix patch (#8345)
* fix param name

* format

* patch
2024-05-21 20:44:52 +00:00
Liam Dyer
47012a0c4e
ensure the client correctly handles all binary data (#8322)
* fix: walk blobs ignoring blobs in arrays directly

* add changeset

* fix function

* add changeset

* address review comments

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: pngwn <hello@pngwn.io>
2024-05-21 20:11:35 +00:00
gtmnayan
82ba397592
add missing orig_name (follow up to #8334) (#8341)
* add missing orig_name (follow up to #8334)

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-05-21 20:51:54 +01:00
Freddy Boulton
4dc7fa7cd7
Fix Chatbot, Dataframe, Markdown custom components (#8339)
* Add code

* add changeset

* ts ignore

* Add code

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-05-21 11:11:39 -04:00
aliabid94
35905c5c8f
Cleanup markdown styling (#8311)
* changes

* 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>
2024-05-20 15:36:23 -07:00
Abubakar Abid
0d6973d5b7
Update SECURITY.md (#8338) 2024-05-20 12:22:04 -07:00
Freddy Boulton
f138b4159e
Use Any if JsonValue cannot be imported (#8336)
* Add fallback

* add changeset

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-05-20 15:13:17 -04:00
gtmnayan
0236b1ab12
fix: prevent triggering gr.File.select on delete (#8334)
* fix: prevent triggering gr.File.select on delete

* extract into named function

* go away eslint

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-05-20 13:00:22 +00:00
Liam Dyer
4d78f29666
fix: zero gpu auth ignoring hf_token (#8323) 2024-05-20 13:58:46 +01:00
Steven Shimizu
81cc4007bc
Fixed README badges (#8324) 2024-05-20 12:32:32 +00:00
Yuvraj Sharma
ffa2091f2d
fixed link to '30 built-in components' (#8331) 2024-05-20 13:29:54 +01:00
pngwn
32e2b64042
chore: update versions (#8320)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-05-17 14:30:02 -07:00
Abubakar Abid
a71ed8071d
fix clog (#8321) 2024-05-17 14:12:39 -07:00
Steven Shimizu
ff56e7b23e
Update custom component installation instructions (#8308)
Added pip 21.3+ requirement to be able to build from pyproject.toml
2024-05-17 13:57:50 -07:00
cswamy
9e31697d94
Added image-to-image diffusers pipeline (#8318)
* fix in external.py

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-05-17 13:57:05 -07:00
Ali Abdalla
1f9a5f0aa3
Fix bad redirect breaking website build (#8319)
* fix bad redirect

* add changeset

* second missing slash

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-05-17 13:44:55 -07:00
Abubakar Abid
8f46556b38
Fix api recorder (#8247)
* fix api recorder

* add changeset

* call data

* fix

* changes

* add changeset

* changes

* format frontend

* lint

* changes

* format

* add changeset

* changes

* add changeset

* fixes

* add changeset

* fix'

* format

* fixes

* add changeset

* add test

* format

* changes

* fix backend tests

* changes

* format

* fix py tests

* push

* data

* add logging

* remove console log

* fix root

* remove console

* format

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-05-17 13:37:44 -07:00
Ricci084
15d85b13f1
Update Python version requirement in Chinese README (#8314) 2024-05-17 04:21:37 -07:00
Freddy Boulton
c6495e1c87
Add auth to demo (#8305) 2024-05-16 13:08:21 -04:00
Shaurya Khurana
69e50edd13
Update 05_gradio-lite.md to fix spelling error: straightrward to straightforward (#8303) 2024-05-16 11:18:10 +01:00