Update inputs.py

This commit is contained in:
Abubakar Abid 2020-08-20 09:32:19 -05:00 committed by GitHub
parent 03c0bfed96
commit c792112a94
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -13,8 +13,7 @@ from gradio.component import Component
import base64
import numpy as np
import PIL.Image
import PIL.ImageOps
import PIL
import scipy.io.wavfile
from gradio import processing_utils
import pandas as pd
@ -579,4 +578,4 @@ class Microphone(InputComponent):
filename = f'input_{timestamp.strftime("%Y-%m-%d-%H-%M-%S")}.wav'
with open("{}/{}".format(dir, filename), "wb+") as f:
f.write(wav_obj)
return filename
return filename