Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -34,6 +34,18 @@ def load_html(url):
|
|
| 34 |
html=f"""<iframe src="https://docs.google.com/viewer?url={url})&embedded=true" frameborder="0" height="1200px" width="100%"></iframe></div>"""
|
| 35 |
return html
|
| 36 |
head = """
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 37 |
<script>
|
| 38 |
function run(url_in) {
|
| 39 |
let url = String(url_in)
|
|
|
|
| 34 |
html=f"""<iframe src="https://docs.google.com/viewer?url={url})&embedded=true" frameborder="0" height="1200px" width="100%"></iframe></div>"""
|
| 35 |
return html
|
| 36 |
head = """
|
| 37 |
+
<meta charset="utf-8" />
|
| 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"/>
|
| 46 |
+
<meta property="og:description" content="Add PDF link to /?pdfurl= parameter"/>
|
| 47 |
+
<!---meta property="og:image" content=""/--->
|
| 48 |
+
<meta http-equiv="refresh" content="0; url=https://broadfield-fast-voice-full.hf.space/?pdfurl=">
|
| 49 |
<script>
|
| 50 |
function run(url_in) {
|
| 51 |
let url = String(url_in)
|