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