Omnibus commited on
Commit
a728a0a
1 Parent(s): d754365

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +24 -0
app.py ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ 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()
21
+ btn = gr.Button()
22
+ output = gr.HTML("""""")
23
+ btn.click(test,input,output)
24
+ app.launch()