Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -58,9 +58,14 @@ function closefn(inn) {
|
|
| 58 |
}
|
| 59 |
function readfn(inn,url) {
|
| 60 |
console.log(inn);
|
|
|
|
| 61 |
var readit = document.getElementById("aud" + String(inn));
|
|
|
|
|
|
|
|
|
|
| 62 |
const iframe = document.createElement('iframe');
|
| 63 |
-
|
|
|
|
| 64 |
iframe.width = '100%';
|
| 65 |
iframe.height = '200px';
|
| 66 |
readit.appendChild(iframe);
|
|
|
|
| 58 |
}
|
| 59 |
function readfn(inn,url) {
|
| 60 |
console.log(inn);
|
| 61 |
+
console.log(url);
|
| 62 |
var readit = document.getElementById("aud" + String(inn));
|
| 63 |
+
let url_in = 'https://broadfield-fast-voice.hf.space/?pdfurl=UUU'
|
| 64 |
+
let api = url_in.replace('UUU',url)
|
| 65 |
+
console.log(api)
|
| 66 |
const iframe = document.createElement('iframe');
|
| 67 |
+
|
| 68 |
+
iframe.src = api;
|
| 69 |
iframe.width = '100%';
|
| 70 |
iframe.height = '200px';
|
| 71 |
readit.appendChild(iframe);
|