vumichien commited on
Commit
973c318
·
1 Parent(s): 85638c3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -30,8 +30,10 @@ def transcribe(file, state=""):
30
 
31
  description = "A simple interface to transcribe from spoken Japanese to Hiragana."
32
  article = "Author: <a href=\"https://huggingface.co/vumichien\">Vu Minh Chien</a>."
33
- inputs = [gr.inputs.Audio(source="microphone", type="filepath", optional=True),
34
- "state"]
 
 
35
  outputs = ["textbox", "state"]
36
 
37
  examples = [["samples/BASIC5000_0001.wav",""],
 
30
 
31
  description = "A simple interface to transcribe from spoken Japanese to Hiragana."
32
  article = "Author: <a href=\"https://huggingface.co/vumichien\">Vu Minh Chien</a>."
33
+
34
+ inputs = [gr.Audio(source="microphone", type="filepath", optional=True),
35
+ gr.Audio(source="upload", type="filepath", optional=True),
36
+ ]
37
  outputs = ["textbox", "state"]
38
 
39
  examples = [["samples/BASIC5000_0001.wav",""],