Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -2,19 +2,19 @@ import gradio as gr
|
|
| 2 |
|
| 3 |
|
| 4 |
def test(inp):
|
| 5 |
-
out =
|
| 6 |
<html lang="en">
|
| 7 |
<head>
|
| 8 |
</head>
|
| 9 |
<body>
|
| 10 |
<iframe
|
| 11 |
-
src="
|
| 12 |
frameborder="0"
|
| 13 |
width="100%"
|
| 14 |
height="2000"
|
| 15 |
></iframe>
|
| 16 |
</body>
|
| 17 |
-
</html>
|
| 18 |
return out
|
| 19 |
with gr.Blocks() as app:
|
| 20 |
input = gr.Textbox()
|
|
|
|
| 2 |
|
| 3 |
|
| 4 |
def test(inp):
|
| 5 |
+
out = f'''<!DOCTYPE html>
|
| 6 |
<html lang="en">
|
| 7 |
<head>
|
| 8 |
</head>
|
| 9 |
<body>
|
| 10 |
<iframe
|
| 11 |
+
src="{inp}
|
| 12 |
frameborder="0"
|
| 13 |
width="100%"
|
| 14 |
height="2000"
|
| 15 |
></iframe>
|
| 16 |
</body>
|
| 17 |
+
</html>'''
|
| 18 |
return out
|
| 19 |
with gr.Blocks() as app:
|
| 20 |
input = gr.Textbox()
|