Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -38,8 +38,8 @@ head = """
|
|
38 |
<meta name="viewport" content="width=device-width" />
|
39 |
<meta name="twitter:card" content="player"/>
|
40 |
<meta name="twitter:site" content=""/>
|
41 |
-
<meta name="twitter:player" content="https://broadfield-fast-voice-full.hf.space/?pdfurl=
|
42 |
-
<meta name="twitter:player:stream" content="https://broadfield-fast-voice-full.hf.space/?pdfurl=
|
43 |
<meta name="twitter:player:width" content="100%"/>
|
44 |
<meta name="twitter:player:height" content="100%"/>
|
45 |
<meta property="og:title" content="PDF to Voice"/>
|
@@ -106,9 +106,9 @@ function () {
|
|
106 |
|
107 |
"""
|
108 |
|
109 |
-
with gr.Blocks(head=head) as app:
|
110 |
a=gr.Audio(streaming=True,autoplay=True)
|
111 |
-
|
112 |
|
113 |
with gr.Accordion("Voice Controls",open=False):
|
114 |
with gr.Row():
|
|
|
38 |
<meta name="viewport" content="width=device-width" />
|
39 |
<meta name="twitter:card" content="player"/>
|
40 |
<meta name="twitter:site" content=""/>
|
41 |
+
<meta name="twitter:player" content="https://broadfield-fast-voice-full.hf.space/?pdfurl=ZZZ"/>
|
42 |
+
<meta name="twitter:player:stream" content="https://broadfield-fast-voice-full.hf.space/?pdfurl=ZZZ"/>
|
43 |
<meta name="twitter:player:width" content="100%"/>
|
44 |
<meta name="twitter:player:height" content="100%"/>
|
45 |
<meta property="og:title" content="PDF to Voice"/>
|
|
|
106 |
|
107 |
"""
|
108 |
|
109 |
+
with gr.Blocks(head=head.replace("ZZZ",t)) as app:
|
110 |
a=gr.Audio(streaming=True,autoplay=True)
|
111 |
+
|
112 |
|
113 |
with gr.Accordion("Voice Controls",open=False):
|
114 |
with gr.Row():
|