Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -39,10 +39,10 @@ head = """
|
|
39 |
<meta name="viewport" content="width=device-width" />
|
40 |
<meta name="twitter:card" content="player"/>
|
41 |
<meta name="twitter:site" content=""/>
|
42 |
-
<meta name="twitter:player" content="https://broadfield-fast-voice-full.hf.space
|
43 |
-
<meta name="twitter:player:stream" content="https://broadfield-fast-voice-full.hf.space
|
44 |
<meta name="twitter:player:width" content="100%"/>
|
45 |
-
<meta name="twitter:player:height" content="
|
46 |
<meta property="og:title" content="PDF to Voice"/>
|
47 |
<meta property="og:description" content="Add PDF link to /?pdfurl= parameter"/>
|
48 |
<!---meta property="og:image" content=""/--->
|
@@ -129,8 +129,14 @@ function () {
|
|
129 |
}
|
130 |
|
131 |
"""
|
132 |
-
|
133 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
134 |
a=gr.Audio(streaming=True,autoplay=True)
|
135 |
|
136 |
|
|
|
39 |
<meta name="viewport" content="width=device-width" />
|
40 |
<meta name="twitter:card" content="player"/>
|
41 |
<meta name="twitter:site" content=""/>
|
42 |
+
<meta name="twitter:player" content="https://broadfield-fast-voice-full.hf.space/?"/>
|
43 |
+
<meta name="twitter:player:stream" content="https://broadfield-fast-voice-full.hf.space/?"/>
|
44 |
<meta name="twitter:player:width" content="100%"/>
|
45 |
+
<meta name="twitter:player:height" content="100%"/>
|
46 |
<meta property="og:title" content="PDF to Voice"/>
|
47 |
<meta property="og:description" content="Add PDF link to /?pdfurl= parameter"/>
|
48 |
<!---meta property="og:image" content=""/--->
|
|
|
129 |
}
|
130 |
|
131 |
"""
|
132 |
+
css="""
|
133 |
+
#id {
|
134 |
+
height:500px;
|
135 |
+
width:100%;
|
136 |
+
}
|
137 |
+
"""
|
138 |
+
with gr.Blocks(head=head,css=css) as app:
|
139 |
+
html=gr.HTML()
|
140 |
a=gr.Audio(streaming=True,autoplay=True)
|
141 |
|
142 |
|