wasm-splitor / app.py
wasmdashai's picture
Create app.py
bc8f6d5 verified
raw
history blame
415 Bytes
import gradio as gr
from gradio_client import Client
def streamwav(text):
client = Client("wasmdashai/wasm-spad",download_files=False)
result = client.submit(
text=text,
api_name="/text_to_speech",
)
for chk in result:
print(chk)
break
return chk['url']
demo = gr.Interface(fn=streamwav, inputs="text", outputs="text")
demo.launch()