Franco Astegiano
commited on
Update app.py
Browse files
app.py
CHANGED
|
@@ -456,7 +456,7 @@ def main(audio):
|
|
| 456 |
);
|
| 457 |
})
|
| 458 |
""".replace('{{DIV_ID}}',DIV_ID).replace('{{data}}',json.dumps(xml))
|
| 459 |
-
|
| 460 |
return a
|
| 461 |
|
| 462 |
# rendering the music score
|
|
@@ -490,17 +490,17 @@ iface = gr.Interface(
|
|
| 490 |
title= "Trabajo Práctico N°3 - Detección de tono con SPICE",
|
| 491 |
description="Implementación de Modelo con GitHub + Hugging Face🤗-- 🔊✅ " + "Basado en: " + link,
|
| 492 |
inputs = [gr.inputs.Audio(source= "microphone" , type="filepath",label="Ingrese Audio")],
|
| 493 |
-
outputs= [gr.outputs.Audio(label="Audio Original")
|
| 494 |
-
|
| 495 |
-
|
| 496 |
-
|
| 497 |
-
|
| 498 |
-
|
| 499 |
-
|
| 500 |
-
|
| 501 |
-
|
| 502 |
-
|
| 503 |
-
interpretation = "default"
|
| 504 |
)
|
| 505 |
|
| 506 |
iface.launch(debug=True)
|
|
|
|
| 456 |
);
|
| 457 |
})
|
| 458 |
""".replace('{{DIV_ID}}',DIV_ID).replace('{{data}}',json.dumps(xml))
|
| 459 |
+
display(Javascript(script))
|
| 460 |
return a
|
| 461 |
|
| 462 |
# rendering the music score
|
|
|
|
| 490 |
title= "Trabajo Práctico N°3 - Detección de tono con SPICE",
|
| 491 |
description="Implementación de Modelo con GitHub + Hugging Face🤗-- 🔊✅ " + "Basado en: " + link,
|
| 492 |
inputs = [gr.inputs.Audio(source= "microphone" , type="filepath",label="Ingrese Audio")],
|
| 493 |
+
outputs= [gr.outputs.Audio(label="Audio Original"),
|
| 494 |
+
gr.outputs.Plot(type="auto",label="Gráfico de Frecuencias"),
|
| 495 |
+
gr.outputs.Plot(type="auto",label="Especto"),
|
| 496 |
+
gr.outputs.Plot(type="auto",label="Pitch Confidence"),
|
| 497 |
+
gr.outputs.Plot(type="auto",label="Notas"),
|
| 498 |
+
gr.outputs.Plot(type="auto",label="Espectro+Notas"),
|
| 499 |
+
gr.outputs.Textbox(label="bpm"),
|
| 500 |
+
gr.outputs.Textbox(label="partitura"),
|
| 501 |
+
gr.outputs.Textbox(type="html",label="partitura1"),
|
| 502 |
+
gr.outputs.Audio(label="midi")],
|
| 503 |
+
interpretation = "default",
|
| 504 |
)
|
| 505 |
|
| 506 |
iface.launch(debug=True)
|