Commit Graph

119 Commits

Author SHA1 Message Date
D V
52f7831751
refactor: Use package.json for version management (#5514)
* refactor: Use package.json for version management

- uses package.json file for version management.
- updated the regex pattern.
- removed the logic that creates or updates the version.txt file

* load version through package.json

* fix code duplication

* add changeset

* add changeset

* fixes

* fix

* package version

* fix

* typing

* typing

* changes

* add changeset

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-09-15 16:23:52 -07:00
pngwn
710cbb67fc
chore: update versions (#5419)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-09-07 13:26:14 -07:00
Freddy Boulton
26fef8c7f8
Skip view_api request in js client when auth enabled (#5412)
* Add code

* add changeset

* Remove console

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-09-06 15:19:41 -04:00
pngwn
d5d0e418c9
chore: update versions (#5361)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-09-01 17:27:32 -07:00
Freddy Boulton
119c834331
Faster reload mode (#5267)
* This works

* Add code

* Final touches

* Lint

* Fix bug in other dirs

* add changeset

* Reload

* lint + test

* Load from frontend

* add changeset

* Use key

* tweak frontend config generation

* tweak

* WIP ipython

* Fix robust

* fix

* Fix for jupyter notebook

* Add checks

* Lint frontend

* Undo demo changes

* add changeset

* Use is_in_or_equal

* python 3.11 changes and no if __name__

* Forward sys.argv + guide

* lint

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: pngwn <hello@pngwn.io>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-08-29 17:29:15 -04:00
pngwn
ba4c6d9e65
chore: update versions (#5177)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-08-23 15:41:08 -07:00
aliabid94
7b8fa8aa58
Allow caching examples with streamed output (#5295)
* changes

* changes

* add changeset

* add changeset

* chages

* Update silver-clowns-brush.md

* changes

* chagers

* changes

* Update silver-clowns-brush.md

* change

* change

* change

* changes

* chages

* changes

* add changeset

* changes

* changes

* changes

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: pngwn <hello@pngwn.io>
2023-08-23 11:47:07 -07:00
Freddy Boulton
390624d8ad
Enable streaming audio in python client (#5248)
* Add code

* Remove file

* add changeset

* add changeset

* Update chilly-fans-make.md

* lint

* Lint

* Add ffmpeg

* Lint

* Cleaner way to handle stream change

* Fix windows test

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-08-21 12:15:36 -07:00
Ray Tri
730f0c1d54
Ensure gradio client works as expected for functions that return nothing. (#5173)
* fixed issue with the js client expecting optional api_info from python gradio runner

* add changeset

* add changeset

---------

Co-authored-by: pngwn <hello@pngwn.io>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-08-14 14:50:32 +01:00
pngwn
643442e1a5
generate docs json in ci, reimplement main vs release (#5092)
* fixup site

* fix docs versions

* test ci

* test ci some more

* test ci some more

* test ci some more

* asd

* asd

* asd

* asd

* asd

* asd

* asd

* asd

* asd

* test

* fix

* add changeset

* fix

* fix

* fix

* test ci

* test ci

* test ci

* test ci

* test ci

* test ci

* test ci

* test ci

* test ci

* notebook ci

* notebook ci

* more ci

* more ci

* update changeset

* update changeset

* update changeset

* fix site

* fix

* fix

* fix

* fix

* fix ci

* render mising pages

* remove changeset

* fix path

* fix workflows

* fix workflows

* fix workflows

* fix comment

* tweaks

* tweaks

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-08-11 15:54:56 +01:00
pngwn
9d1bd28bdf
chore: update versions (#5038)
* chore: update versions

* update actions

* update changelog

* other changelgo

* extra

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-08-10 16:59:00 -04:00
Freddy Boulton
35856f8b54
Return final output for generators in Client.predict (#5057)
* Add code

* add changeset

* add changeset

* Add feat changeset

* Fix js code snippet

* Fix changelog

* Add test

* Delete code

* Lint

* Make fix for python client

* Make JS client changes

* Add submit line to error

* Changelog

* Lint

* Undo

* Add dual handling

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-08-09 13:03:56 -04:00
renovate[bot]
61129052ed
Update dependency esbuild to ^0.19.0 (#5133)
* Update dependency esbuild to ^0.19.0

* 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>
2023-08-08 12:43:34 -04:00
pngwn
1419538ea7
Refactor component directories (#5074)
* asd

* changes

* fix everything

* cleanup

* add changeset

* fix casing

* lockfile

* fix casing

* fix ci, enable linting

* fix test

* add changeset

* add changeset

* delete changeset

* fix dirs

* fix casing

* fix notebooks

* fix casing

* fix casing

* fix casing

* fix casing

* fix casing

* fix casing

* fix casing

* fix casing

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-08-03 23:01:18 +01:00
Abubakar Abid
67265a5802
Allow supporting >1000 files in gr.File() and gr.UploadButton() (#5075)
* allow supporting >1000 files

* add changeset

* Update client/js/src/client.ts

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-08-03 15:29:03 -04:00
Freddy Boulton
2745075a26
Add deploy_discord to docs (#5076)
* Add deploy_discord to docs

* add changeset

* add jsons

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: aliabd <ali.si3luwa@gmail.com>
2023-08-03 10:07:13 -07:00
Abubakar Abid
136adc9ccb
Ensure gradio_client is backwards compatible with gradio==3.24.1 (#5061)
* fix to client

* add changeset

* lint

* add changeset

* add changeset

* add changeset

* add changeset

* pin

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-08-02 18:06:25 -04:00
Ray Tri
8b4eb8cac9
JS Client: Fixes cannot read properties of null (reading 'is_file') (#5035)
* In transform_output, typeof d can be an object even if the property is_file doesn't exist on d. Therefore invoking d.is_file will error out. This commit fixes that by failing quietly if the is_file property doesn't exist on d.

* Update client.ts - fixed spacing

fixed spacing

* add changeset

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-08-01 12:16:20 -04:00
pngwn
861d752a83
chore: update versions (#4999)
* chore: update versions

* undo diff

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: freddyaboulton <alfonsoboulton@gmail.com>
2023-07-26 17:10:24 -04:00
Freddy Boulton
46e4ef67d2
Deploy ChatInterface as a discord bot (#4960)
* WIP

* Handle queue full message

* Add code

* Fix types

* Format

* Add docstring

* Rephrase

* cli conflicts

* Update client/python/gradio_client/templates/discord_chat.py

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

* WIP

* Handle queue full message

* Add code

* Fix types

* Format

* Add docstring

* Rephrase

* cli conflicts

* Update client/python/gradio_client/templates/discord_chat.py

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

* Update client/python/gradio_client/templates/discord_chat.py

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

* Update client/python/gradio_client/templates/discord_chat.py

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

* Update client/python/gradio_client/templates/discord_chat.py

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

* Figure out how slash commands work

* Lint

* Fix new name situation

* Dont auto archive

* add code

* Explain sync

* add changeset

* Update client/python/gradio_client/cli/deploy_discord.py

Co-authored-by: Omar Sanseviero <osanseviero@gmail.com>

* Make more general

* Fix check

* add changeset

* Add guide

* Step-by-step guide

* Add tip on login via cli

* Fix template - auto synch

* Add note on space sleeptime

* add changeset

* Add more info for feature

* Add img

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Omar Sanseviero <osanseviero@gmail.com>
2023-07-26 16:09:38 -04:00
pngwn
62306d9ed1
unified release process (#4986)
* Implement unified version and release mechanism for all python and javascript packages.

* Update gradio/package.json

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

* fix changelog

* fix changelog

* Update js/button/README.md

* Update .github/workflows/generate-changeset.yml

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-07-21 19:13:21 +01:00
Abubakar Abid
d51f61692b
changelog (#4994) 2023-07-21 15:48:09 +03:00
Freddy Boulton
7b18891aae
Client: Support endpoints that return layout components (#4871)
* Add code

* CHANGELOG

* Add code

* Use set

* Modify _setup_serializers instead

* Push up code

* Remove from serializing

* Add gradio_client changes

* Update requirements.txt
2023-07-17 13:21:54 -04:00
Abubakar Abid
9f072796a5
Pinning dependencies in requirements.txt (#4885)
* requirements

* pins

* clogs

* python multipart

* python multipart

* clogs

* clog
2023-07-12 21:03:53 -04:00
Freddy Boulton
9787d0284a
Use tempdir for all python unit tests tests (#4882)
* Use tempdir for all tests

* Disable telemetry automaticall for client

* Use configuration

* Push js

* Final comments

* Undo change
2023-07-12 11:19:39 -04:00
Freddy Boulton
59b492a082
Fix loading spaces with api_name=False (#4886)
* Fix api_name=False

* Add more to test
2023-07-12 11:09:06 -04:00
Freddy Boulton
cd551f70dd
Bump version (#4861) 2023-07-10 12:32:49 -04:00
aliabid94
280b5697eb
Mobile queue fixes (#4742)
* changes

* changes

* changes

* changes

* changes

* Styling for error, warning and info toasts (#4603)

* create abstract toast component for info/warning/error

* add icons

* add light mode theming

* add theme mode check and dark mode styles

* update theme_mode on update

* clean up render of toast content

* replace dynamic css vars with toast type css selectors

* tweak colours

* change error pill border colour to align with toasts

* formatting

* fix failed test

* rename icon files and clean up css

* changes

* changes

* changes

* changes

* changes

* changes

* chanegs

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: Hannah <hannahblair@users.noreply.github.com>
2023-07-07 14:39:06 -05:00
pngwn
7fa5e766ce
format (#4810) 2023-07-06 18:43:49 +01:00
Ali Abdalla
cd693708cf
Converting the website into sveltekit (#3437)
* index page

* demos page

* guides gallery page

* guides

* some docs work

* changes

* changes

* docs work

* refactor some to ssr

* more refactoring

* add metatags

* add special docs pages and improve nav

* fix prev next in combining

* add changelog

* Site slugs for new website (#3431)

* safe slugs for docs

* add slugs to guides

* changes

* add flagging

---------

Co-authored-by: aliabd <ali.si3luwa@gmail.com>

* make anchor tags visible on hover

* add anchor tags to docs

* fix @html in codeblocks

* fix demos in guides

* syntax highlighting code in example usage

* fix @html in changelog

* fix contributing lin

* fix assets in guides

* fix broken assets on build

* error page

* fix meta tags updating

* move guides to be /guides/[guide] instead of /[guide]

* add headers to sections and make them linkable - freddy feedback

* add guides section to docs

* tighten width and add second nav bar

* styling second nav bar

* smooth scrolling in docs and guides

* make components clickable in event listener graph

* load latest gradio.js

* menu bar on docs mobile

* scrolling highlight menu and remove base docs page

* vercel

* refactor guides

* fix slugs in docs

* fix &lt; and code formatting in guides

* added search

* redirect all old links

* fix bad merge

* fix paths

* Fix css issue with spaces logo

* add status page link to footer

* add themes to docs

* fix new documentation.py path

* add python client docs

* make docs faster

* add clients ot docs

* colors

* convert to adapter static

* prerender

* fix broken paths in guides

* fix broken slugs

* Aliabd/website sveltekit test (#4572)

* fixes to paths

* fixes

* typechecking

* fix

* fix

* fix

* types lib

* more type fixes

* extends fix

* typing fix

* typing fix

* json typing fix

* add jsons

* rollup

* tweak

* fix lockfile

* fix maybe

* fix maybe

* changes

* ui functional fix

* oops

* pnpm version

* fix app

---------

Co-authored-by: pngwn <hello@pngwn.io>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-07-04 16:33:22 +03:00
aliabid94
6c5427230e
Create Warning, Info modals (#4518)
* changes

* changes

* changes

* changes

* changes

* Styling for error, warning and info toasts (#4603)

* create abstract toast component for info/warning/error

* add icons

* add light mode theming

* add theme mode check and dark mode styles

* update theme_mode on update

* clean up render of toast content

* replace dynamic css vars with toast type css selectors

* tweak colours

* change error pill border colour to align with toasts

* formatting

* fix failed test

* rename icon files and clean up css

* changes

* changes

* changes

* changes

* changes

* changes

* chanegs

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: Hannah <hannahblair@users.noreply.github.com>
2023-07-03 16:28:39 -05:00
Aarni Koskela
2544e7bd16
URL validation/access fixes (#4695)
* is_valid_url: share a requests session for performance

* Rename is_valid_url to probe_url (because that makes sense for what it does); add is_http_url_like

* Do not allow encode_url_to_base64 to encode error responses

* Do not allow download_tmp_copy_of_file to download error responses as valid files

* Changelog

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-06-30 10:25:33 -05:00
Abubakar Abid
409593e9cc
Updates to the API endpoints / docs, and fixing the Theme builder (#4683)
* view API fixes

* code snippet js

* changelog

* api name false

* examples

* client trigger tests

* fix typecheck

* black

* type

* typing

* typing

* update gif

* type ignore

* added tests

* format

* added test

* test

* fix guides

* snippet

* tests

* fix tests

* add test

* fix typing

* fix test

* remove comments
2023-06-29 14:05:25 -05:00
pngwn
8b0c680d9a
chore: update versions (#4720)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-06-29 15:55:28 +01:00
Yuichiro Tachibana (Tsuchiya)
ab5d1ea0de
Fix the description field of client/js/package.json (#4717) 2023-06-29 12:57:46 +01:00
Yuichiro Tachibana (Tsuchiya)
4fbdefe94e
Gradio-lite (Gradio Wasm) (#4402) 2023-06-27 08:09:50 +01:00
Freddy Boulton
d1a46f161a
Use Literal Type Hint Where Possible (#4608)
* Use literal type hint

* Add type hint

* CHANGELOG

* PR review

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-06-21 15:13:12 -05:00
Freddy Boulton
2e351ec6f2
Fix bug duplicating spaces with default cpu hardware (#4583)
* Fix bug

* Add CHANGELOG

* Fix test

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-06-21 14:57:24 -05:00
aliabid94
0909c35102
Duplicate spaces integration into gradio (#4458)
* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes

* changes
2023-06-21 12:25:25 -07:00
renovate[bot]
6a92e19a0d
chore(deps): update all non-major dependencies (#4601)
* chore(deps): update all non-major dependencies

* Update website/homepage/Dockerfile

* changelog

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: pngwn <hello@pngwn.io>
2023-06-21 15:56:10 +01:00
pngwn
7e99ce74c7
chore: update versions (#4358) 2023-06-20 14:23:01 +01:00
Freddy Boulton
b7010fa0eb
Only run install steps in backend ci if not previously cached (#4517)
* dont install if cache

* Fix

* Fix client cache

* Potential fix

* Change key name

* Fix

* Use python command

* Build front-end in lint job

* Install

* Fix

* Build afterward

* Consolidate lint

* trigger ci

* Fix windows

* Use virtualenv

* New try

* Typo

* Fix typp

* Add full path

* Separate Linux and windows steps

* Typos

* shell

* trigger ci

* Fix

* use command

* Use cache for setup python too

* Separate cache for front-end

* trigger ci

* Add Don't lint on windows

* Add if changes

* Delete restore keys

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-06-16 15:34:06 -04:00
Freddy Boulton
2ed80b74b3
Fix client test that broke (#4539)
* Fix test

* Fix other test

* Add fix
2023-06-15 18:20:06 -04:00
Abubakar Abid
d65512cb3a
Fix output directory of files in client & when calling Blocks as function (#4501)
* output dirs

* remove

* remove

* remove

* changelog

* format

* add tests

* docstring

* changelog

* client

* blocks

* fix test
2023-06-14 17:08:10 -05:00
Freddy Boulton
afcc20801e
Deprecate python 3.7 (#4484)
* Remove versions from 3.7

* CHANGELOG

* from typing import Literal

* Remaning places 3.7

* Last few spots

* Use 3.8 in lint
2023-06-13 21:52:33 -04:00
Abubakar Abid
3d82094de2
Support PAUSED Space status when embedding (#4438)
* Support paused status

* fix

* changelog

* Update client/js/src/client.ts

Co-authored-by: pngwn <hello@pngwn.io>

* formatting

* added paused space

* formatting

* logs

* added test space, fixes

* Update client/js/src/client.ts

Co-authored-by: pngwn <hello@pngwn.io>

* remove logs

* fix

---------

Co-authored-by: pngwn <hello@pngwn.io>
2023-06-09 02:20:16 -05:00
Freddy Boulton
4a58ccee39
Fix bug where file examples can be corrupted if has multiple extensions (#4440)
* Fix bug

* Add to changelog

* Add test

* Remove breakpoint

* fix test

* increment version

* update client version req

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-06-07 15:05:01 -05:00
WilliamRoyNelson
e364f81ffc
Increase version gradio-client version/changelog (#4441)
* Increase version gradio-client version/changelog

* req

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-06-07 14:18:32 -05:00
Abubakar Abid
d82dfb886d
Fix loading private Spaces (#4430)
* replace api key with hf_token

* removed extra slash

* changelog

* update notebooks

* lint

* changelog

* changelog

* revert demo
2023-06-07 13:55:05 -05:00
Freddy Boulton
bc6a1fad1c
Call mounted gradio app via api (#4435)
* Fix bug

* Add changelog
2023-06-06 10:40:56 -05:00