Spaces:
Runtime error
Runtime error
Commit
•
4f60d64
1
Parent(s):
ae1d2e6
Update app.py
Browse files
app.py
CHANGED
@@ -28,7 +28,7 @@ def asr(speech):
|
|
28 |
|
29 |
ans = round(eval(equation),2)
|
30 |
|
31 |
-
return transcript, equation, ans, model2(str(ans))
|
32 |
|
33 |
gr.Interface(fn=asr,
|
34 |
#inputs = gr.inputs.Audio(source="microphone", type="filepath", optional=False, label="Please record your voice"),
|
@@ -38,7 +38,7 @@ gr.Interface(fn=asr,
|
|
38 |
gr.outputs.Textbox(type="str", label="Answer"),
|
39 |
gr.outputs.Audio(type="file", label="Speech Answer")],
|
40 |
title = "Speech Equation Solver",
|
41 |
-
description = "This app
|
42 |
-
article = "
|
43 |
examples=["additionTest.mp3","minusTest.mp3","multiplyTest.mp3","divideTest.mp3"]
|
44 |
).launch()
|
|
|
28 |
|
29 |
ans = round(eval(equation),2)
|
30 |
|
31 |
+
return transcript, equation, ans, model2("The answer is "+str(ans))
|
32 |
|
33 |
gr.Interface(fn=asr,
|
34 |
#inputs = gr.inputs.Audio(source="microphone", type="filepath", optional=False, label="Please record your voice"),
|
|
|
38 |
gr.outputs.Textbox(type="str", label="Answer"),
|
39 |
gr.outputs.Audio(type="file", label="Speech Answer")],
|
40 |
title = "Speech Equation Solver",
|
41 |
+
description = "This app aims to translate speech into an equation, solve the equation and generate a speech to tell the user the answer to the simple problem",
|
42 |
+
article = "Models: <a href=\"https://huggingface.co/facebook/wav2vec2-base-960h\">Wav2Vec2-Base-960h</a>",
|
43 |
examples=["additionTest.mp3","minusTest.mp3","multiplyTest.mp3","divideTest.mp3"]
|
44 |
).launch()
|