Update app.py
Browse files
app.py
CHANGED
@@ -74,10 +74,10 @@ def asr(speech):
|
|
74 |
|
75 |
gr.Interface(fn=asr,
|
76 |
inputs = gr.inputs.Audio(source="microphone", type="filepath", optional=False, label="Please record your voice"),
|
77 |
-
#
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
title = "Speech to Morse Code",
|
82 |
description = "This app will translate your speech into text, morse code, and audio.",
|
83 |
examples = ["helloworld.mp3"],
|
|
|
74 |
|
75 |
gr.Interface(fn=asr,
|
76 |
inputs = gr.inputs.Audio(source="microphone", type="filepath", optional=False, label="Please record your voice"),
|
77 |
+
#inputs = gr.inputs.Audio(source="upload", type="filepath", label="Upload your audio file here"),
|
78 |
+
outputs = [gr.outputs.Textbox(type="str", label="Text Translation"),
|
79 |
+
gr.outputs.Textbox(type="str", label="Morse Code"),
|
80 |
+
gr.outputs.Audio(type="file", label="Audio Translation")],
|
81 |
title = "Speech to Morse Code",
|
82 |
description = "This app will translate your speech into text, morse code, and audio.",
|
83 |
examples = ["helloworld.mp3"],
|