mirror of
https://github.com/gradio-app/gradio.git
synced 2024-11-27 01:40:20 +08:00
Hotfix audio output, HighlightedText skip (#2950)
* changes * fixes * changes
This commit is contained in:
parent
b3dc6f5574
commit
13fd9f35e1
@ -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.
|
||||
|
@ -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,
|
||||
|
@ -1 +1 @@
|
||||
3.16.0
|
||||
3.16.1
|
||||
|
Loading…
Reference in New Issue
Block a user