mirror of
https://github.com/gradio-app/gradio.git
synced 2025-01-06 10:25:17 +08:00
Update inputs.py
This commit is contained in:
parent
03c0bfed96
commit
c792112a94
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user