Hotfix audio output, HighlightedText skip (#2950)

* changes

* fixes

* changes
This commit is contained in:
aliabid94 2023-01-07 22:26:19 -06:00 committed by GitHub
parent b3dc6f5574
commit 13fd9f35e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions

View File

@ -5,7 +5,7 @@
No changes to highlight.
## Bug Fixes:
No changes to highlight.
- Fix audio file output by [@aliabid94](https://github.com/aliabid94) in [PR 2950](https://github.com/gradio-app/gradio/pull/2950).
## Documentation Changes:
No changes to highlight.

View File

@ -2152,7 +2152,7 @@ class Audio(
sample_rate, data = y
file = tempfile.NamedTemporaryFile(suffix=".wav", delete=False)
processing_utils.audio_to_file(sample_rate, data, file.name)
file_path = file.name
file_path = str(Path(file.name).resolve())
self.temp_files.add(file_path)
else:
file_path = self.make_temp_copy_if_needed(y)
@ -3397,7 +3397,7 @@ class HighlightedText(Changeable, IOComponent, JSONSerializable):
value: List[Tuple[str, str | float | None]]
| Dict
| Literal[_Keywords.NO_VALUE]
| None,
| None = _Keywords.NO_VALUE,
color_map: Dict[str, str] | None = None,
show_legend: bool | None = None,
label: str | None = None,

View File

@ -1 +1 @@
3.16.0
3.16.1