File size: 741 Bytes
1bafed7 aef02a5 1bafed7 aef02a5 1bafed7 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
# import gradio as gr
#
# gr.Interface.load("models/MIT/ast-finetuned-audioset-10-10-0.4593").launch()
import gradio as gr
from test import request_api
import sys
import warnings
from fastapi import FastAPI
# ignore UserWarning
warnings.simplefilter("ignore", UserWarning)
from test import request_api
title = "MIT-AST test"
description = "An audio event classifier trained on the AudioSet dataset to predict audio events from the AudioSet ontology."
demo = gr.Interface(
request_api,
inputs=[
gr.inputs.Audio(type="filepath"),
],
outputs=['text'],
# examples=examples,
title=title,
description=description,
allow_flagging='never'
)
demo.launch(enable_queue=True, show_error=True, share=False)
|