wasmdashai commited on
Commit
bc8f6d5
1 Parent(s): 763c195

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +18 -0
app.py ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+ from gradio_client import Client
3
+ def streamwav(text):
4
+ client = Client("wasmdashai/wasm-spad",download_files=False)
5
+
6
+ result = client.submit(
7
+ text=text,
8
+ api_name="/text_to_speech",
9
+
10
+ )
11
+ for chk in result:
12
+ print(chk)
13
+ break
14
+
15
+ return chk['url']
16
+
17
+ demo = gr.Interface(fn=streamwav, inputs="text", outputs="text")
18
+ demo.launch()