Spaces:
Runtime error
Runtime error
File size: 394 Bytes
d1aa7b7 9cc6970 d1aa7b7 c029b7d 9cc6970 b35dd02 3551f33 d1aa7b7 |
1 2 3 4 5 6 7 8 9 10 11 12 13 |
import subprocess, platform
if platform.system() == 'Linux':
subprocess.run(['apt-get', 'install', 'libsndfile1'])
subprocess.run(['apt-get', 'install', 'ffmpeg'])
import gradio as gr
from inference import *
iface = gr.Interface(fn=inference,
inputs=gr.inputs.Audio(source="upload", type="filepath"),
outputs="text")
iface.launch(share=True) |