Omnibus commited on
Commit
a137c8a
·
1 Parent(s): 1cc3783

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -2,19 +2,19 @@ import gradio as gr
2
 
3
 
4
  def test(inp):
5
- out = """<!DOCTYPE html>
6
  <html lang="en">
7
  <head>
8
  </head>
9
  <body>
10
  <iframe
11
- src="https://omnibus-detect-language.hf.space"
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()