aliabid94
4ba7b238e2
Improve plot guide, add double clicking to plots ( #9064 )
...
* changes
* add changeset
* chages
* 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>
2024-08-07 19:17:14 -07:00
gsbm
fb502de8af
Update gradio clients documentation examples for file handling ( #8970 )
...
* Replacing file() deprecated function by handle_file()
* Add handle_file() function to example
* Fix example synthax error
* Add handle_file() function to examples
2024-08-02 12:48:08 -04:00
Abubakar Abid
d072252156
guide ( #8957 )
2024-07-31 20:10:28 -07:00
aliabid94
9b42ba8f10
Update guides esp plots ( #8907 )
...
* changes
* changes
* revert changes
* changes
* add changeset
* notebooks script
* 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: Ali Abdalla <ali.si3luwa@gmail.com>
2024-07-29 22:08:51 -07:00
Abubakar Abid
10a2260fc0
Adds a security note to the Oauth section ( #8901 )
...
* security note
* Update guides/03_additional-features/09_sharing-your-app.md
Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com>
---------
Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com>
2024-07-25 03:00:02 +00:00
Maciek
02cf173775
Minor QuickStart changes. Dead link change and typo removal ( #8859 )
2024-07-21 06:31:09 -07: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
Freddy Boulton
5e36144232
Add guides for msg format and llm agents ( #8750 )
...
* Add guides
* add changeset
* Add code
* Add code
* Add notebook
* rename msg_format to type
* Fix docs
* notebooks
* missing link
* Update guides
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-07-12 11:53:28 +00:00
Abubakar Abid
936c7137a9
Documents auth in the guides, in the view API page, and also types the Blocks.config object ( #8720 )
...
* auth docs
* changes
* add changeset
* add changeset
* add changeset
* type
* changes
* snippets
* import
* add changeset
* changes
* fix typing
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-07-08 18:58:07 -07:00
cocktailpeanut
280a3f4afe
GRADIO_ALLOWED_PATHS & GRADIO_BLOCKED_PATHS comma separated environme… ( #8705 )
...
* GRADIO_ALLOWED_PATHS & GRADIO_BLOCKED_PATHS comma separated environment variables
* GRADIO_ALLOWED_PATHS & GRADIO_BLOCKED_PATHS comma separated environment variables
* add changeset
* Document GRADIO_ALLOWED_PATHS and GRADIO_BLOCKED_PATHS
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-07-05 21:55:11 +00:00
Abubakar Abid
c946c6f31a
Allow supplying custom gr.Chatbot
with events to gr.ChatInterface
( #8677 )
...
* allow chatbot.like
* changes
* add changeset
* add to docs
* add to docs
* fix
* fix
* add changeset
* add changeset
* move to chatinterface docs
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-07-02 14:13:33 -04:00
Ali Abdalla
9e0d6774b8
fix progress bars name ( #8678 )
2024-07-01 11:23:42 -07:00
Abubakar Abid
8bc78c447c
Adds some missing details to guides ( #8676 )
...
* more docs
* changes
* chatbot fast
* add environment variables guide
* add environment variables guide
* Update guides/09_other-tutorials/running-gradio-on-your-web-server-with-nginx.md
Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com>
---------
Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com>
2024-07-01 14:13:12 -04:00
aliabid94
2943d6d688
Add Timer component ( #8505 )
...
* chagnes
* add changeset
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* change
* add docs
* add changeset
* remove demo
* add changeset
* add changeset
* changes
* changes
* changes
* add changeset
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* Update gradio/components/timer.py
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* 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>
Co-authored-by: pngwn <hello@pngwn.io>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-06-28 16:53:44 -07:00
Ikko Eltociear Ashimine
04ec30e7b1
docs: update 07_pdf-component-example.md ( #8636 )
...
callled -> called
2024-06-26 18:42:46 -04:00
Abubakar Abid
a4897d62c0
add section ( #8619 )
2024-06-26 10:41:41 -04:00
Freddy Boulton
9204d86ed4
Add guide on cleaning up state and file resources ( #8610 )
...
* WIP
* Add guide
* add changeset
* notebook
* No log in
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-06-25 11:52:35 -04:00
Abubakar Abid
d35c290aad
Adding more docs for using components in chatbot ( #8593 )
...
* adding more docs for components in chatbot
* add changeset
* add changeset
* add simple demo
* simple demo
* notebook
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-06-21 18:04:27 +00:00
Ali Abdalla
7833749eae
remove empty lines ( #8585 )
2024-06-20 02:33:34 -07:00
Sadra Barikbin
4c8a183477
To fix a few formatting typos in Gradio-and-Wandb-Integration.md
tutorial ( #8563 )
...
* A few typo fix in Gradio&WandB tutorial
* Apply suggestions from code review
Co-authored-by: Ali Abdalla <ali.abdalla@huggingface.co>
---------
Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com>
Co-authored-by: pngwn <hello@pngwn.io>
Co-authored-by: Ali Abdalla <ali.abdalla@huggingface.co>
2024-06-20 08:41:03 +00:00
Makoto Tanji
3722542199
Update 02_key-features.md ( #8558 )
...
I noticed that the type mentioned in the figure (int) and the description (float) were inconsistent.
I've also included some additional text corrections.
Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com>
2024-06-15 05:28:06 -07:00
pngwn
595ecf35da
Add build target option to the custom component gradio.config.js
file ( #8520 )
2024-06-10 20:16:41 +01:00
aliabid94
73e11087a0
Adds a monitoring dashboard to Gradio apps that can be used to view usage ( #8478 )
...
* changes
* add changeset
* 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-06-06 08:31:22 -07:00
pngwn
e2271e207d
documentation for @gradio/client ( #8483 )
...
* fix param name
* format
* docs
* add changeset
* Update client/js/README.md
Co-authored-by: Hannah <hannahblair@users.noreply.github.com>
* add changeset
* Apply suggestions from code review
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: Hannah <hannahblair@users.noreply.github.com>
2024-06-06 14:58:20 +00:00
Ali Abdalla
86288993d9
Support Bash in Api Recorder ( #8460 )
...
* add bash to api recorder
* formatting
* add changeset
* fix copy bug
* remove current_language from api banner
* add changeset
* use awk and read
* separate over multiple lines
* fix line spacing
* update guide
* changes
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-06-05 23:17:58 +00:00
Abubakar Abid
5c8915b113
Add cURL to view API Page and add a dedicated Guide ( #8445 )
...
* curl docs
* add changeset
* curl
* guide complete
* rename
* more details
* add changeset
* add changeset
* Update guides/08_gradio-clients-and-lite/03_querying-gradio-apps-with-curl.md
Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com>
* Update guides/08_gradio-clients-and-lite/03_querying-gradio-apps-with-curl.md
Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com>
* changes
* add support for curl in view api docs
* add support for files
* format frontend
* lint
* Update js/app/src/api_docs/img/bash.svg
Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com>
* remove api recorder on bash
* fixes
* changes
* fix
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com>
2024-06-05 01:32:13 +00:00
aliabid94
4a55157ed9
state.change listener with deep hash check ( #8446 )
...
* changes
* changes
* add changeset
* changes
* changes
* changes
* changes
* Update guides/04_building-with-blocks/04_dynamic-apps-with-render-decorator.md
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
---------
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-06-04 14:19:30 -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
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
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
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
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
Yuvraj Sharma
ffa2091f2d
fixed link to '30 built-in components' ( #8331 )
2024-05-20 13:29:54 +01: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
Shaurya Khurana
69e50edd13
Update 05_gradio-lite.md to fix spelling error: straightrward
to straightforward
( #8303 )
2024-05-16 11:18:10 +01:00
Freddy Boulton
4350215348
Link to troubleshooting guide in the custom component loading status ( #8279 )
...
* Add code
* Add code
* add changeset
* Add code
* remove unused style
* add changeset
* Update js/app/src/Index.svelte
Co-authored-by: Hannah <hannahblair@users.noreply.github.com>
* Update guides/06_custom-components/06_frequently-asked-questions.md
Co-authored-by: Hannah <hannahblair@users.noreply.github.com>
* Update guides/06_custom-components/06_frequently-asked-questions.md
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: Hannah <hannahblair@users.noreply.github.com>
2024-05-14 23:02:45 +00:00
Abubakar Abid
de52f0e5af
Reduce the analytics that are collected in Gradio ( #8263 )
...
* reduce analytics
* add changeset
* mark flaky
* lint
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: freddyaboulton <alfonsoboulton@gmail.com>
2024-05-13 23:10:08 +00:00
Abubakar Abid
d708ca8fca
Reorganize Guides in a more logical order ( #8262 )
...
* guides reorg
* separate flagging
* examples
* tweak
* Update 01_quickstart.md
* redirect
* redirect
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-05-13 20:13:31 +00:00
Yuichiro Tachibana (Tsuchiya)
4ae17a4653
Embedded Lite example apps in the docs ( #8278 )
...
* Disable MDsveX's smartypants option to preserve the Python code embedded in the doc as Lite apps unchanged
* Add Lite embedded apps to 06_gradio-lite-and-transformers-js.md
* add changeset
* Add comments
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-05-13 12:08:31 -07:00
Yuichiro Tachibana (Tsuchiya)
d62a48b183
Delete embedded Lite apps in the doc ( #8232 )
2024-05-10 15:50:38 +09:00
Abubakar Abid
52dac637a3
Adds examples_per_page
to gr.ChatInterface
and allows clear_btn
in gr.Interface
to be hidden ( #8244 )
...
* add to and allow setting to in
* docs
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-05-09 10:23:27 -05:00
Yuichiro Tachibana (Tsuchiya)
1435d1d2dc
Extend Interface.from_pipeline() to support Transformers.js.py pipelines on Lite ( #8052 )
...
* Extend Interface.from_pipeline() to support Transformers.js.py pipelines on Lite (wip: only object-detection in this commit)
* add changeset
* Add image-classification and image-segmentation
* Add zero-shot-image-classification and zero-shot-object-detection
* Add document-question-answering
* Add feature-extraction and fill-mask
* Add question-answering and summarization
* Fix an error message
* Add text2text-generation, text-classification, and text-generation
* Add translation andtranslation_xx_to_yy
* Add zero-shot-classification
* Add postprocess_takes_inputs to control the args passed to the postprocess function of each pipeline
* Add topk option to image-classification
* format_backend
* Add audio-classification, automatic-speech-recognition, and zero-shot-audio-classification
* Add image-to-text
* Add token-classification (with JSON component as an output. Is it correct?)
* Ignore import type failure of transformers_js_py
* Add image-feature-extraction
* Add image-to-image
* Add text-to-audio
* Add depth-estimation
* Remove `render=False`
* Reorder the if-blocks following the Transformers.js doc
* Update gradio/pipelines_utils.py
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Update gradio/pipelines_utils.py
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Fix feature-extraction demo
* Fix demo title
* Add guides/08_gradio-clients-and-lite/gradio-lite-and-transformers-js.md without contents
* Rename guides/08_gradio-clients-and-lite/*.md to fix the order
* Use pipeline.model.config._name_or_path for the demo title instead of pipeline.model.config.model_type
* Fix normal Interface.from_pipeline to use pipeline.model.config.name_or_path as the demo title
* Write an article about Gradio-Lite and Transformers.js
* Update the doc
* tweaks
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-05-03 07:37:51 +00:00
Simon Duerr
989fe2566f
Make guide for tailwind more verbose ( #8152 )
2024-04-30 03:35:22 +01:00
Freddy Boulton
9a5728ca2b
Update docs on max-threads ( #8166 )
2024-04-29 14:39:16 -04:00
James Zhou
ba15bde44c
add flag for hot reload example ( #8155 )
2024-04-29 11:11:16 -04:00
pngwn
15a7106a36
allow custom component authors to provide custom vite plugins and svelte preprocessors ( #6787 )
2024-04-25 19:58:42 +01:00
Ali Abdalla
17e83c958e
Docs Reorg and Intro Page ( #8061 )
...
* 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
* add changeset
* Update js/_website/src/routes/[[version]]/docs/+page.svelte
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Update js/_website/src/routes/[[version]]/docs/+page.svelte
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Update js/_website/src/routes/[[version]]/docs/+page.svelte
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Update js/_website/src/routes/[[version]]/docs/+page.svelte
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Update js/_website/src/routes/[[version]]/docs/+page.svelte
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Update js/_website/src/routes/[[version]]/docs/+page.svelte
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* styling changes
* formatting
* fix build
* rounded corners on buttons
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-04-23 13:33:45 -07:00
Ikko Eltociear Ashimine
d12beba6bb
Update creating-a-realtime-dashboard-from-google-sheets.md ( #8095 )
...
minor fix
2024-04-22 09:35:26 -07:00
Hannah
450b8cc898
Refactor JS Client ( #7646 )
...
* initial setup
* fix hf token prefix
* warnings + error handling
* implement stream, predict and submit
* update blocks with new client
* add changeset
* temp comment
* add changeset
* add sse_v3 chages
* imrpove typing, reimplement websocket logic
* refactor zerogpu logic
* integrate fetch_implemenation
* wasm changes
* tweaks
* tscheck fixes
* type fixes
* test
* test import tweaks
* test
* package.json
* improve typing + config
* config tweak
* remove fetch-mock
* pnpm lock
* config
* remove module
* tweak
* tweak
* fix config
* test
* test
* lockfile
* fix types
* more config tweaks
* type fixes
* formatting
* fix typing
* formatting
* type fixes
* test
* lockfile
* revert comment
* package.json
* tweak
* formatting
* test
* revert ts removal
* remove comments + logic fixes
* type fix
* formatting
* test
* stream logic changes
* fix test
* revert comments
* fix streaming test
* stream tweak
* data typing
* fix wasm fetch
* client typing tweaks
* more fixes + typing improvements
* move functions
* event_source tweaks
* cleanup
* add hardware types and cleanup jwt
* improve api info typing
* add await client() backwards compatiblity
* rename create to connect and move duplicate logic
* Update `Client` usage examples (#8003 )
* update client examples
* remove test data
* fix types
* remove types changes
* client -> Client.create
* Update client/js/README.md
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Update client/js/README.md
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* update duplicate docs
* attempt to update cn docs
* format
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* type improvements and config error handling
* fix image editor issue
* Merge branch 'main' into refactor-client
* improve typing
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-04-19 23:36:13 +02:00
Freddy Boulton
2afca65419
Add max_file_size
parameter to launch()
that limits the size of files that can be uploaded in the Gradio app ( #7909 )
...
* File size limits
* Implementation
* add changeset
* Fix tests
* python client support
* lint
* fix test
* lint
* add changeset
* Set at the blocks level
* add changeset
* type check
* format
* lint
* lint
* Delete files as soon as they're encountered
* fix tests
* type hint 🙄
* Fix tests
* Fix below limit test
* add changeset
* Fix tests
* Add client file
* revert loop code
* Add to guides
* Pass in via gradio component
* add changeset
* Update loading status
* Make errors closeable
* add changeset
* Add code
* Lint
* Changelog highlight
* Fix i18n in storybook
* Address comments
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-04-19 15:38:53 -04:00