fix audio output cache (#804)

* fix audio output cache

* changes

* version update

Co-authored-by: Ali Abid <aliabid94@gmail.com>
This commit is contained in:
aliabid94 2022-03-10 10:28:02 -08:00 committed by GitHub
parent f90ab24a72
commit fab4a311b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 15 additions and 10 deletions

Binary file not shown.

View File

@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: gradio
Version: 2.8.9
Version: 2.8.10
Summary: Python library for easily interacting with trained machine learning models
Home-page: https://github.com/gradio-app/gradio-UI
Author: Abubakar Abid, Ali Abid, Ali Abdalla, Dawood Khan, Ahsen Khaliq

View File

@ -1 +1 @@
2.8.9
2.8.10

View File

@ -5,7 +5,7 @@ except ImportError:
setup(
name="gradio",
version="2.8.9",
version="2.8.10",
include_package_data=True,
description="Python library for easily interacting with trained machine learning models",
author="Abubakar Abid, Ali Abid, Ali Abdalla, Dawood Khan, Ahsen Khaliq",

View File

@ -1,11 +1,12 @@
<script lang="ts">
import { afterUpdate } from "svelte";
export let value: string;
export let theme: string;
let audio: HTMLAudioElement;
afterUpdate(() => (audio.src = value));
</script>
<audio {theme} controls>
<audio bind:this={audio} class="w-full" {theme} controls>
<source src={value} />
</audio>
<style lang="postcss">
</style>

View File

@ -84,8 +84,12 @@ for guide in sorted(os.listdir(GRADIO_GUIDES_DIR)):
[
line
for line in guide_content.split("\n")
if not (line.startswith("tags: ") or line.startswith("related_spaces: ") or
line.startswith("Contributed by ") or line == title)
if not (
line.startswith("tags: ")
or line.startswith("related_spaces: ")
or line.startswith("Contributed by ")
or line == title
)
]
)
@ -97,7 +101,7 @@ for guide in sorted(os.listdir(GRADIO_GUIDES_DIR)):
"tags": tags,
"spaces": spaces,
"url": url,
"contributor": contributor
"contributor": contributor,
}
)