Commit Graph

6777 Commits

Author SHA1 Message Date
Ali Abdalla
ba59bb824f
Add search to website (#8624) 2024-07-03 21:57:11 -07:00
Ali Abdalla
64ac05b111
Better spacing for codeblocks on docs (#8686)
* styling for codeblocks

* add changeset

* formatting

* add changeset

* changes

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-07-03 16:46:23 -07:00
pngwn
6cc69bc6ae
fix demo (#8696) 2024-07-03 19:39:50 +01:00
Paillat
a92c3e8015
Warn against Falsy credentials (#8683)
* fix(auth): Disallow Falsy credentials

Allowing Falsy auth credentials will cause problems later, for example in `hmac.compare_digest(input_password.encode(), correct_password.encode())` as NoneType has no `encode` method. Moreover, allowing empty passwords would make no sense from a security point of view.

* fix(auth): Produce warning instead of raising an error

* add changeset

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-07-02 14:46:38 -04: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
Gina Wu
3b8238c2e2
Add c/cpp code support (#8665)
* Add c/cpp code support

* lint

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-07-01 11:44:50 +00: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
pngwn
12f81fcaed
chore: update versions (#8622)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-06-28 12:39:54 -04:00
Dawood Khan
c34839293f
Multimodal textbox buttons alignment (#8637)
* button spacing

* add changeset

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-06-28 12:04:27 -04:00
Hannah
9b8840ab5f
Ensure chatbot messages are visible to screenreaders (#8631)
* fix aria label for message.type

* add changeset

* tweak

* improve aria-label for files

* copy tweak

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-06-28 12:03:44 -04:00
Hannah
4b6c8b1c00
ensure File objects are handled in JS client handle_file (#8649)
* amend `File` datatype logic

* add changeset

* amend test

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-06-28 16:41:44 +01:00
pngwn
3896398480
Ensure copy button on chatbot shows when appropriate (#8655)
* fix copy button

* add changeset

* fix boolean logic

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-06-28 12:26:37 +00:00
magical-l
9933e538c9
Update file_explorer.py for str type height (#8645)
* Update file_explorer.py for str type `height`

`height` can be str

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-06-27 05:40:23 +00: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
ea6482cc89
remove chatbot_multimodal demo from gr.Chatbot documentation page (#8632)
* remove demo

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-06-26 12:17:55 -04:00
Freddy Boulton
c12f82a36d
Bugfix: Allow multiple files to be uploaded via multimodal textbox (#8608)
* Add code

* Add file_count parameter to MultimodalTextbox

* add changeset

* Update fresh-years-feel.md

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-06-26 12:14:25 -04:00
Abubakar Abid
a4897d62c0
add section (#8619) 2024-06-26 10:41:41 -04:00
magical-l
cccf0fe208
Update run.py (#8625)
* Update run.py

fix misuse

* generate notebooks

---------

Co-authored-by: aliabd <ali.si3luwa@gmail.com>
2024-06-26 10:05:32 +00:00
Yuichiro Tachibana (Tsuchiya)
54a46e93a2
Remove garbage file (#8627) 2024-06-26 05:35:25 -04:00
Ali Abdalla
4c6e4e0ba9
Fix CORS issues with Lite Component Demos (#8623)
* fix erros

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-06-25 22:36:58 -07:00
Abubakar Abid
b6fa6b543f
Add docs for .on(), .then(), and .success(), as well as the subclasses of gr.EventData (#8604)
* more helpers

* add changeset

* add changeset

* lint

* trigger list

* add example

* docstring

* dependency

* add changeset

* events

* document subclasses

* fix syntax

* event data svx

* add changeset

* selectdata

* lint

* key up data

* 2 more

* on

* other placeholders

* lint

* address reviews

* tweak

* Update js/_website/src/lib/templates/gradio/04_helpers/01_eventdata.svx

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-06-26 03:14:07 +00:00
pngwn
8d425ee777
chore: update versions (#8613)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-06-25 12:18:25 -04:00
pngwn
4cfb6eebf6
chore: update versions (#8523)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-06-25 11:54:46 -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
aliabid94
affce4cbd9
Fix resizer on altair (#8603)
* changes

* add changeset

* 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-06-25 11:09:38 -04:00
Freddy Boulton
8aad678a63
Fix plotly version (#8606)
* Unpin plotly

* Fix plotly version deployed space for PRs
2024-06-25 10:59:10 -04:00
Deva Kumar Gajulamandyam
36b2af9a31
Changed gradio version check from print statement to warning (#8609)
* changed print statement to warning

* Updated warnings in single line

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-06-25 14:31:08 +00:00
pngwn
c7cd0a0e9a
Ensure chatbot background is consistent with other components (#8607) 2024-06-25 11:37:23 +01:00
Ali Abdalla
fe83e6445a
Small fix to guide styling (#8605) 2024-06-25 02:52:12 -07:00
Freddy Boulton
ca125b728a
Fix reload mode for jupyter notebook and stateful demos (#8599)
* Remove deprecated method

* add changeset

* Fix bug

* Update test

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-06-25 00:36:36 -04:00
aliabid94
65afffd34b
Fix multimodal chat look (#8590)
* changes

* add changeset

* changes

* changes

* changes

* changes

* add changeset

---------

Co-authored-by: Ali Abid <aliabid94@gmail.com>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-06-24 16:43:25 -07:00
Josh Wong
7289c4b036
Add credentials: include and Cookie header to prevent 401 error (#8600)
* Add credentials: include and Cookie header to prevent 401 error

* FIx formatting

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-06-24 23:42:03 +01:00
pngwn
530f8a0b05
chatbot component tweaks (#8594) 2024-06-24 21:41:06 +00: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
pngwn
7fc7455553
support html in chatbot (#8555) 2024-06-21 09:17:25 +01:00
pngwn
900cf25256
Ensure frontend functions work when they don't return a value (#8521) 2024-06-21 09:17:10 +01:00
Abubakar Abid
34430b934d
Handle GIFs correct in gr.Image preprocessing (#8589)
* handle gifs correct in image preprocessing

* add changeset

* fix

* add test

* add test

* docstring

* add docs

* image

* revert

* change

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-06-20 23:25:42 +00:00
aliabid94
797621b81a
Improved plot rendering (#8580)
* changes

* add changeset

* add changeset

* add changeset

* changes

* changes

* restore altair

* changes

* changes

* changes

* changes

* changes

* changes

* Update twenty-jokes-argue.md

* changes

* chanegs

* 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-06-20 23:09:04 +00:00
Abubakar Abid
1e61644624
move deploy_space_action.yaml to correct location (#8588)
* move file to right location

* move file

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-06-20 16:34:38 -04:00
Abubakar Abid
bc5fccfeee
Allow gr.load to work inside gr.Blocks automatically (#8579)
* load-in-blocks

* allow gr.load inside gr.Blocks

* add changeset

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-06-20 12:39:58 -04: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
baojianting
a77877f62d
First time loading performance optimization (#8571)
* performance: add gradio_api_info

* format code

* fix ts check

* fix ts check

* add changeset

* add changeset

* format globals.d.ts

---------

Co-authored-by: jianting.bjt <jianting.bjt@alibaba-inc.com>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-06-20 09:38:40 +01:00
Abubakar Abid
a1c21cb69a
fix dataset update (#8581)
* fix dataset update

* revert'

* add changeset

* add test

* add changeset

* changes

* add template

* add changeset

* fix docstring

* test postprocessing

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-06-19 23:00:57 +00:00
Shruti Agarwal
2b0c1577b2
Added an optional height and overflow scrollbar for the Markdown Component (#8528)
* scrollable-markdown-changes-added

* made suggested changes

* added a new story in Storybook

* add changeset

* add changeset

* tweaks

* changes

* changes

* revert example change

* tweaks

* demo changes

* more tweaks

* formatting

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-06-19 14:07:21 -04:00
Sadra Barikbin
fd5aab10be
Remove duplicated code in routes.py (#8565)
* Update routes.py

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-06-19 15:39:10 +00:00
Shruti Agarwal
56af40f5e3
Fixes the favicon_path working error (#8573)
* fixes  error

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-06-19 11:29:59 -04:00
Ali Abdalla
ed82a6237e
Bring back embedded demos on component docs (#8557)
* add component demos

* formatting

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-06-18 23:59:43 -07:00