Spaces:
Runtime error
Runtime error
edited app file.
Browse files
app.py
CHANGED
@@ -1,10 +1,12 @@
|
|
|
|
1 |
import gradio as gr
|
2 |
from inference import *
|
3 |
|
4 |
-
|
5 |
-
|
|
|
6 |
|
7 |
iface = gr.Interface(fn=inference,
|
8 |
inputs=gr.inputs.Audio(source="upload", type="filepath"),
|
9 |
outputs="text")
|
10 |
-
iface.launch()
|
|
|
1 |
+
import subprocess, platform
|
2 |
import gradio as gr
|
3 |
from inference import *
|
4 |
|
5 |
+
if platform.system() == 'Linux':
|
6 |
+
subprocess.call(['sudo', 'apt-get install', 'libsndfile1'])
|
7 |
+
subprocess.call(['sudo', 'apt-get install', 'ffmpeg'])
|
8 |
|
9 |
iface = gr.Interface(fn=inference,
|
10 |
inputs=gr.inputs.Audio(source="upload", type="filepath"),
|
11 |
outputs="text")
|
12 |
+
iface.launch(share=True)
|