Commit Graph

6639 Commits

Author SHA1 Message Date
Yanis Lukes
2de329d8cf
Update client.py: Docs typo (#7585) 2024-03-03 14:24:46 -08:00
André Pedersen
24626ea362
Fixed redirects and reformatted code in creating-a-fast-chatbot guide (#7563)
* Minor code styling fix in example to be more consistent

* Fix broken redirect

* Fixed two more redirects

* Fixed more redirects

* Revert faulty redirect updates
2024-02-28 14:56:29 -08:00
Abubakar Abid
bd2c695328
Adds a gr.DownloadButton component (#7518)
* py

* path

* barebones js

* add changeset

* add changeset

* downloadbutton

* add changeset

* changes

* clog

* commit

* revert'

* fix

* js

* add changeset

* cleanup

* download

* notebooks

* stories

* change

* fix

* format

* download

* Fix updating `icon` parameter (bug resulting from https://github.com/gradio-app/gradio/pull/7528) (#7554)

* fetch 2

* fix

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-02-28 12:07:36 -08:00
Hannah
65f114a117
Add error handling for missing js/_website/version.json (#7451)
* add error handling for version.json

* tweak error

* add changeset

* formatting

* tweak logic

* fix build

* tweak

* fix ENOENT error during build

* revert removal of 3.50.2 routes

Co-authored-by: Ali Abdalla <ali.si3luwa@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-02-28 19:05:48 +01:00
Abubakar Abid
1fa2e914ca
Fixes auth_message so that it correctly renders HTML (#7545)
* quick fix

* add changeset

* story

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-02-27 16:16:52 -08:00
Abubakar Abid
98aa8082dd
Add /logout functionality for Gradio auth (#7547)
* logout

* changes

* add changeset

* documentation

* add test

* changes

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-02-27 14:53:24 -08:00
Abubakar Abid
f84720cd76
Prevent paths beginning with // or \\ (#7544)
* prevent smb paths on windows

* docstring

* add changeset

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-02-27 12:34:44 -08:00
Ari Roffe
7cda6ce06d
Update 03_sharing-your-app.md (#7552)
* Update 03_sharing-your-app.md

* Update guides/01_getting-started/03_sharing-your-app.md

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-02-27 16:41:47 +00:00
Abubakar Abid
eda33b3763
Refactors get_fetchable_url_or_file() to remove it from the frontend (#7528)
* fetch

* add changeset

* add changeset

* simplify

* add changeset

* changes

* format

* add changeset

* changes

* format

* fixes

* lint

* fix components

* fixes

* typing

* format frontend

* path

* fixes

* fix stories

* lint

* lint

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-02-26 13:01:00 -08:00
renovate[bot]
8c9c98a741
chore(deps): update dependency vega to v5.23.0 [security] (#7537)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-26 15:21:11 +00:00
renovate[bot]
0027f0c9d6
chore(deps): update dependency postcss to v8.4.31 [security] (#7536)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-26 15:06:15 +00:00
Jacob Dineen
6fc95d9ed0
fix typos in ci.md; labal -> label (#7533) 2024-02-26 15:05:56 +00:00
renovate[bot]
edb756802d
chore(deps): update dependency chromatic to v11 (#7513)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-02-23 10:35:57 -08:00
renovate[bot]
ba1459afd9
chore(deps): update chromaui/action action to v11 (#7514)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-02-23 10:35:31 -08:00
paragonnov
08c2d491ec
when adding custom head html, ensure there are no duplicate meta tags (#7510)
* fix: remove old element to prevent duplication

remove old element before append new meta tag to prevent duplication

* fix: unexpected

* Update

* format

* unexpected

* unexpected

* add changeset

* improve

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-02-23 17:04:04 +00:00
pngwn
daf40b5ce3
fix tests? (#7523) 2024-02-23 16:29:11 +00:00
pngwn
bacbc70fa1
chore: update versions (#7463)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-02-22 13:29:11 -08:00
Abubakar Abid
84802ee6a4
Tighten CORS rules (#7503)
* tighten cors rules

* add changeset

* cors policy

* cors

* add changeset

* lint

* changes

* changes

* changes

* logging

* add null

* changes

* changes

* options

* options

* safe changes

* let browser enforce cors

* clean

* route utils

* fix

* fix test

* fix

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-02-22 11:54:51 -08:00
MMP0
b186767744
Fix Gallery preview overlay and backdrop (#7505)
* Restore `Gallery` translucent background

* Add `backdrop-filter` for Safari

* Fix overflowing `Gallery` preview overlay

* add changeset

* Older browser support

* add changeset

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Dawood Khan <dawoodkhan82@gmail.com>
2024-02-22 11:33:03 -08:00
Dawood Khan
9c36572e32
Quick fix: File height overflow (#7507)
* quick fix

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-02-22 11:11:26 -08:00
Akshunn Trivedi
8f050eedbc
Streaming example for the updated OpenAI API (#7508)
* Changes for updated OpenAI api

* Update guides/04_chatbots/01_creating-a-chatbot-fast.md

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-02-22 16:08:29 +00:00
Yuichiro Tachibana (Tsuchiya)
33f68cb6c2
Fix Canvas3D/Canvas3DGS async imports (#7511)
* Fix Model3D and Model3DUpload to handle async-imports and access the child component's exported method

* Refactoring: reorder the lines to put the related snippets together

* add changeset

* Refactoring

* Disable the undo buttons for Canvas3DGS

* add changeset

* Refactoring to use optional chaining

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-02-22 22:28:56 +09:00
aliabid94
16fbe9cd0c
Prevent components from working with non-uploaded files (#7465)
* changes

* chanegs

* add changeset

* changes

* changes

* add changeset

* 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-02-21 20:21:20 -06:00
aliabid94
ba3ec1300e
Tab select fix (#7470)
* changes

* add changeset

* changes

* changes

* changes

* Update js/tabs/shared/Tabs.svelte

Co-authored-by: Aarni Koskela <akx@iki.fi>

* 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: Aarni Koskela <akx@iki.fi>
2024-02-21 17:27:58 -06:00
Davi Rodrigues
98a2719bfb
Fix z-index layer of orange generating border (#7466)
* fix z-index layer of generating border

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-02-21 13:59:39 -08:00
renovate[bot]
09de02a9b2
chore(deps): update dependency globals to v14 (#7381)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: pngwn <hello@pngwn.io>
2024-02-20 19:01:41 -08:00
Abubakar Abid
ddd4d3e4d3
Reverts the revert that dropped changes from 2 PRs (#7495)
* Revert "Revert "changes""

This reverts commit 032435368d.

* patch
2024-02-20 18:36:10 -08:00
Ali Abid
254c7dc9c3 Revert "changes"
This reverts commit 96ab4e5314.
2024-02-20 16:21:47 -06:00
Ali Abid
2de756c69d Revert "changes"
This reverts commit 6a93633054.
2024-02-20 16:21:39 -06:00
Ali Abid
032435368d Revert "changes"
This reverts commit 19dd2218dc, reversing
changes made to 6a93633054.
2024-02-20 16:21:27 -06:00
Ali Abid
19dd2218dc changes 2024-02-20 15:54:15 -06:00
Ali Abid
6a93633054 changes 2024-02-20 15:53:56 -06:00
Ali Abid
96ab4e5314 changes 2024-02-20 15:52:57 -06:00
pngwn
ef85f336cf
ensure Dataframe headers are aligned with content when scrolling (#7478) 2024-02-19 21:59:56 +00:00
Aarni Koskela
17b6840887
Enable Ruff S101 (#7477)
* Update to Ruff 0.2.2

* Enable Ruff S101; don't use asserts in runtime code, or AssertionErrors for flow control
2024-02-19 13:29:20 -08:00
Garry Dolley
54ec29ad1e
Fixed typo in example: client -> app (#7473)
I was trying to run this example, but it failed.  predict() is a method of the app object, not client.  Fixed!
2024-02-18 23:11:49 +00:00
Ikko Eltociear Ashimine
1dbaa53109
Update ci.md (#7468)
targetting -> targeting
2024-02-17 09:35:29 -08:00
Abubakar Abid
b7a97f29b8
Update httpx to httpx>=0.24.1 in requirements.txt (#7443)
* update httpx requirement

* add changeset

* add to client

* add changeset

* fix version

* reorder

* test

* try force reinstall

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-02-16 15:43:01 -08:00
Abubakar Abid
06b30ce277
More CI stuff: remove force install (#7462)
* update httpx requirement

* add changeset

* add to client

* add changeset

* fix version

* reorder

* test

* try force reinstall

* change

* reorder action

* remove force

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-02-16 15:33:20 -08:00
Abubakar Abid
a4c307bc2c
Reorder action (#7461)
* update httpx requirement

* add changeset

* add to client

* add changeset

* fix version

* reorder

* test

* try force reinstall

* change

* reorder action

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-02-16 15:27:33 -08:00
Abubakar Abid
b5bee49969
fix requirements (#7459) 2024-02-16 13:09:29 -08:00
pngwn
1e5e787999
chore: update versions (#7426)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-02-16 12:28:13 -08:00
Abubakar Abid
f16d03dfba fix patch 2024-02-16 11:26:43 -08:00
Hannah
f191786791
Improve responsiveness of gr.Audio() controls (#6991)
* improve audio container in mobile

* check for denied device access

* add changeset

* add changeset

* tweak controls placements

* add changeset

* add viewport modes to test

* add changeset

* add changeset

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: pngwn <hello@pngwn.io>
2024-02-16 10:57:12 -08:00
Abubakar Abid
3e4e680a52
Fixes to the .key_up() method to make it usable for a dynamic dropdown autocomplete (#7425)
* fixes

* changes

* add changeset

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Hannah <hannahblair@users.noreply.github.com>
2024-02-16 10:21:32 -08:00
Abubakar Abid
ba747adb87
Make fix in #7444 (Block /file= filepaths that could expose credentials on Windows) more general (#7453)
* test routes

* chagne

* add changeset

* add changeset

* type fixes

* fix typing issues

* typed dict

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-02-16 18:09:31 +00:00
aliabid94
f52cab634b
Dispatch change event for file explorer (#7441)
* changes

* add changeset

* changes

* changes

* fix test reqs in functional tests

* fix notebooks

* fix notebooks

* fix test flake

---------

Co-authored-by: Ali Abid <aliabid94@gmail.com>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: pngwn <hello@pngwn.io>
2024-02-16 12:03:10 -06:00
pngwn
805a5136a1
fix test reqs in functional tests (#7454) 2024-02-16 17:27:07 +00:00
pngwn
b8f534ed02
fix (#7450) 2024-02-16 15:45:32 +00:00
pngwn
612fa6325c
document CI (#7393)
* document CI

* update documentation note about immortality of non-main documentation in S3

* Apply suggestions from code review

Co-authored-by: Aarni Koskela <akx@iki.fi>

* technical stuff

* add more stuff

* fix

* Update testing-guidelines/ci.md

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

* Apply suggestions from code review

Co-authored-by: Aarni Koskela <akx@iki.fi>

* fix

* fix

* fix

* fix

* fix

* fix

---------

Co-authored-by: Aarni Koskela <akx@iki.fi>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-02-16 15:24:38 +00:00