Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -34,17 +34,14 @@ def first():
|
|
34 |
return out
|
35 |
|
36 |
def test(inp):
|
|
|
|
|
37 |
out = f'''<!DOCTYPE html>
|
38 |
<html lang="en">
|
39 |
<head>
|
40 |
</head>
|
41 |
<body>
|
42 |
-
|
43 |
-
src="{inp}"
|
44 |
-
frameborder="0"
|
45 |
-
width="100%"
|
46 |
-
height="2000"
|
47 |
-
></iframe>
|
48 |
</body>
|
49 |
</html>'''
|
50 |
return out
|
|
|
34 |
return out
|
35 |
|
36 |
def test(inp):
|
37 |
+
with open("myfile.txt", "r") as file1:
|
38 |
+
html_out = file1.read()
|
39 |
out = f'''<!DOCTYPE html>
|
40 |
<html lang="en">
|
41 |
<head>
|
42 |
</head>
|
43 |
<body>
|
44 |
+
{html_out}
|
|
|
|
|
|
|
|
|
|
|
45 |
</body>
|
46 |
</html>'''
|
47 |
return out
|