4741 Commits

Author SHA1 Message Date
pngwn
8cfee0b86a
fix overflow (#1661) 2022-06-29 15:19:57 +01:00
Halil Ibrahim Bestil
3026b8f597
Add type hint to provide autocompletion for Request class instances. (#1642) 2022-06-26 17:10:02 +03:00
Abubakar Abid
0f44cf8012
Read version.txt (#1631)
* read version from version.txt

* reordered lines
2022-06-24 21:24:57 -07:00
pngwn
1e6ceb9543
Mask image (#1621)
* changes

* add masking to image

* added preprocessing for mask

* tweaks + improvements to masking

* make mask work with webcam input

* cleanup

* fix default image

* fix default value when source is upload

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-06-25 01:11:28 +01:00
Dawood Khan
b11ed64a06
text color + custom style fixes (#1626) 2022-06-23 20:55:16 -07:00
Halil Ibrahim Bestil
51c8c34486
Async Request Class (#1595)
* Implement Request class and its tests.

* Add new requirements

* Reformat codebase.

* Fix formatting.

* Add library level requirements.

* Convert validated_data property to get_validated_data function.

* Fix the client fixture.

* Update test/test_utils.py

* Update test/test_utils.py

* Fix the client fixture.

* Add missing initialization for Request._validated_data

* Fix async test problem with test_tunneling.py

* Update gradio/utils.py

* Update gradio/utils.py

* Fix formatting.

Co-authored-by: Ömer Faruk Özdemir <farukozderim@gmail.com>
2022-06-23 20:44:04 +03:00
Abubakar Abid
7a0f6b1dd2
Deprecation error if multiple functions are passed into fn parameter in Interface (#1623)
* stack deprection

* formatting

* rewrite parallel

* formatting'
2022-06-22 23:48:42 -07:00
Abubakar Abid
4628ef0a8b
version (#1619) 2022-06-22 00:39:31 -05:00
Ian González
1334847a22
Restore get_config function for Gallery component (#1614)
Co-authored-by: Ian Gonzalez <ian.gl@protonmail.com>
2022-06-22 00:26:51 -05:00
pngwn
f1a1e79be4
fix autoscroll (#1570)
* fix autoscroll

* fix formatting

Co-authored-by: Ali Abid <aabid94@gmail.com>
2022-06-21 10:44:30 +01:00
Ian González
64a1bdc3b0
Fix text color for bold and code on dark theme (#1615)
Co-authored-by: Ian Gonzalez <ian.gl@protonmail.com>
2022-06-21 10:37:20 +01:00
Abubakar Abid
44ddafb68a
Fixes json serialization issues (#1606)
* fixed serialization

* formatting

* Update gradio/components.py

Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>

* Update gradio/components.py

Co-authored-by: aliabid94 <aabid94@gmail.com>
Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
2022-06-20 13:17:55 -05:00
Abubakar Abid
827f46cb93
added docs for elem_id and other missing parameters in components.py (#1602)
* added docs for elem_id and other missing parameters

* formatting
2022-06-20 13:17:43 -05:00
Dawood Khan
98121ee6a3
Issue #1594: Plot component is not cached with examples (#1600)
* fix plot cache examples

* format
2022-06-20 13:13:35 -05:00
Abubakar Abid
41f175a9fd
button fix (#1603) 2022-06-20 13:11:21 -05:00
Abubakar Abid
13e81c334e
Misc fixes (#1607)
* misc fixes

* formatting
2022-06-20 13:09:33 -05:00
Abubakar Abid
34464401c1
[Guide] Embedding Gradio Space on another website (#1468)
* created new file

* guide

* added guide

* added width

* Apply suggestions from code review
2022-06-17 22:06:23 -07:00
Abubakar Abid
5391d6fa97
fixed off by one error in messaging (#1589)
* fixed off by one error

* formatting
2022-06-17 20:56:16 -07:00
pngwn
90eaf20aab
ensure iframe can detect dom changes within shadow root (#1599)
* ensure iframe can detect dom changes within shadow root

* formatting

* correctly reference document body

* switch to unscoping when inside an iframe

* formatting

* version

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-06-17 20:36:50 -07:00
aliabid94
6413b65328
fixes with HighlightedText, variables (#1563)
* changes

* removed comment things

* updated version

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-06-16 17:32:14 -07:00
aliabid94
cb2aa4a625
Hidden fix [hotfix] (#1585)
* fix

* Update Button.svelte
2022-06-16 17:22:09 -07:00
pngwn
8710d3a079
Wrap dataframe (#1571)
* add suport for table cell wrapping

* revert pkginfo change

* revert pkginfo change

* fixed tests

* formatting

* type hint

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-06-16 17:02:01 -07:00
aliabid94
5e7cf62a47
Fix visible (#1576)
* changes

* format

* change

* Update Blocks.svelte

* Update Render.svelte

* Update tokens.css
2022-06-16 16:49:54 -07:00
Abubakar Abid
f9436903ea
Allows updating interactive property for components (#1575)
* interactive fix

* removed textbox

* handled None condition

* handled None condition

* added update methods for other components

* formatting

* removed from output components
2022-06-16 16:48:46 -07:00
aliabid94
4d74206748
changes (#1577) 2022-06-16 11:16:18 -07:00
Ian González
d0b521510d
Manage a null value update on Dataframe (#1580)
Co-authored-by: Ian Gonzalez <ian.gl@protonmail.com>
2022-06-16 10:13:24 +01:00
Ian González
78af573990
Change the afterUpdate code in Plot to use a binding to get the div when using plotly (#1565)
Co-authored-by: Ian Gonzalez <ian.gl@protonmail.com>
2022-06-15 10:40:00 -04:00
Abubakar Abid
c963081dd8
[Guide] Developer Mode (#1394)
* first commit

* guide ready

* Update guides/developing_quickly_with_reload_mode.md

Co-authored-by: Ömer Faruk Özdemir <farukozderim@gmail.com>

* fixes

Co-authored-by: Ömer Faruk Özdemir <farukozderim@gmail.com>
2022-06-15 00:44:38 -07:00
Abubakar Abid
d455baca4e
Fix images for pypi guide (#1560)
* fix images for pypi

* reverted changes to readme

* remove print

* fix
2022-06-14 12:30:09 -07:00
Ömer Faruk Özdemir
04a0764394
Handle async funcs within sync scopes (#1547)
* handle_async_funcs

- save temporary work

* handle_async_funcs

- handle async functions in sync domain both in background or sync

* handle_async_funcs

- tweaks

* handle_async_funcs

- format

* handle_async_funcs

- tweaks

* handle_async_funcs

- fixes

* revert gradio.egg files

* added to requires

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-06-14 22:18:59 +03:00
Ian González
26745a88dc
Stop audio tracks of user media on the stop callback for the Audio component when using the microphone (#1562)
Co-authored-by: Ian Gonzalez <ian.gl@protonmail.com>
2022-06-14 17:07:27 +01:00
Abubakar Abid
d10bca27c0
Skip tests that return 429 from HF Hub API (#1559)
* skip tests

* formatting

* formatting and fixes
2022-06-13 17:57:45 -07:00
aliabid94
a3047ee838
broken HTML [hotfix] (#1558) 2022-06-13 17:20:35 -07:00
aliabid94
11b12d9456
Scrolling by default only in Interface, remove progress animation on streaming (#1499)
* changes

* changes

* format

* changes

* add relative to block

* changes

* ensure statustracker component is never rendered by render

Co-authored-by: pngwn <hello@pngwn.io>
2022-06-13 17:11:19 -07:00
Abubakar Abid
311972dba6
added docs to events & styles (#1530)
* added docs to events

* added docs to events

* added style docs to highlightedtext

* add events to docs

* format

Co-authored-by: aliabd <ali.si3luwa@gmail.com>
Co-authored-by: Ali Abid <aabid94@gmail.com>
2022-06-13 17:02:08 -07:00
aliabid94
caa6a4e687
rework visible, attach to all components (#1511)
* changes

* fix
2022-06-13 16:49:23 -07:00
Simon Duerr
fdbecafffb
Matplotlib max-h fix so that plots are not cut off (#1550)
`object-fit:contain` only works with `max-h` if they are set on the same element. I moved `max-h` to `img` and also increased the height a bit such that the plot has enough space and can adapt to the container height.

Fixes #1546
2022-06-13 16:32:17 -07:00
Abubakar Abid
4048ac11b7
6th try (#1557) 2022-06-13 13:51:32 -07:00
Abubakar Abid
5069a8814f
5th try (#1556) 2022-06-13 13:39:18 -07:00
Abubakar Abid
3fc4703745
4th try (#1555) 2022-06-13 13:34:42 -07:00
Abubakar Abid
3a746899c8
trying again (#1554) 2022-06-13 13:25:35 -07:00
Abubakar Abid
ef1abe1071
Act2 (#1553)
* configure

* testing
2022-06-13 13:09:31 -07:00
Abubakar Abid
e2336f1a72
working on github action fix (#1552) 2022-06-13 13:00:35 -07:00
Abubakar Abid
63030a602d
version (#1551) 2022-06-13 12:47:16 -07:00
Ali Abdalla
57239edcde
fix broken docs link in readme (#1543) 2022-06-11 00:14:50 -07:00
Abubakar Abid
cf027b68f4
Combines 2 PRs for testing (#1540)
* mount custom css to the web component (#1536)

* set configurable min height prior to loading (#1532)

* set configurable minheight prio to loading

* formatting

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

* release beta version for testing (#1541)

Co-authored-by: pngwn <hello@pngwn.io>
2022-06-10 20:11:40 -07:00
aliabid94
00e4b1436f
Allow styling height for Image and Video, also dynamic logic change (#1503)
* changes

* changes

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-06-10 19:56:07 -07:00
pngwn
f879a08f72
make file types match (#1538)
* make file types match

* revert kitchen_sink change
2022-06-10 18:51:19 -07:00
aliabid94
4564a8136c
Show error on error (#1500)
* changes

* changes

* formatting

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2022-06-10 12:55:30 -07:00
Abubakar Abid
ef027cf6a7
Model3d deserialization (#1520)
* inputless live

* formatting

* added generate button back

* deserialization fix
2022-06-10 12:08:47 -07:00