GuillermoPuma commited on
Commit
9adc594
1 Parent(s): 9ffa456

add app file

Browse files
Files changed (2) hide show
  1. app.py +11 -0
  2. prueba.html +9 -0
app.py ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+
3
+ def same_or_different(audio1, audio2):
4
+ # Run model to see if spoken by same person or not
5
+ # Return the result as a custom HTML snippet
6
+ code = """<py-script> print('Hello, World!') </py-script>"""
7
+ # "<a style='color:#eb9f59;' href = 'https://github.com/gandres-dev/Hackaton-Common-Voice'> Repositorio de la app"
8
+ return code
9
+ description = "<a style='color:#eb9f59;' href = 'prueba.html'> Repositorio de la app"
10
+
11
+ iface = gr.Interface(fn=same_or_different, inputs=["text", "text"], outputs="html", description=description).launch()
prueba.html ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ <html>
2
+ <head>
3
+ <link rel="stylesheet" href="https://pyscript.net/alpha/pyscript.css" />
4
+ <script defer src="https://pyscript.net/alpha/pyscript.js"></script>
5
+ </head>
6
+ <body>
7
+ <py-script> print('Hello, World!') </py-script>
8
+ </body>
9
+ </html>