Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -45,15 +45,13 @@ function start() {
|
|
45 |
with gr.Blocks() as app:
|
46 |
a=gr.Audio(streaming=True,autoplay=True)
|
47 |
h=gr.HTML()
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
bulk=gr.Textbox(label="bulk",interactive=False,visible=True)
|
52 |
|
53 |
app.load(None,None,t,js=js)
|
54 |
|
55 |
t.change(read_pdf,t,bulk)
|
56 |
-
#t.change(load_html,t,h)
|
57 |
|
58 |
bulk.change(pp.stream_tts,bulk,a)
|
59 |
-
app.queue().launch(max_threads=40)
|
|
|
45 |
with gr.Blocks() as app:
|
46 |
a=gr.Audio(streaming=True,autoplay=True)
|
47 |
h=gr.HTML()
|
48 |
+
with gr.Column(visible=False):
|
49 |
+
t=gr.Textbox(label="url",interactive=False,visible=True)
|
50 |
+
bulk=gr.Textbox(label="bulk",interactive=False,visible=True)
|
|
|
51 |
|
52 |
app.load(None,None,t,js=js)
|
53 |
|
54 |
t.change(read_pdf,t,bulk)
|
|
|
55 |
|
56 |
bulk.change(pp.stream_tts,bulk,a)
|
57 |
+
app.queue(default_concurrency_limit=20).launch(max_threads=40)
|