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