File size: 434 Bytes
d1aa7b7
9cc6970
d1aa7b7
4bc9300
 
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(['sudo', 'apt-get', 'install', 'libsndfile1'], check=True)
    subprocess.run(['sudo', 'apt-get', 'install', 'ffmpeg'], check=True)

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)