Spaces:
Sleeping
Sleeping
Commit
·
c9d3908
1
Parent(s):
fe1b089
modified and renamed app file and created requirements.txt file
Browse files- gradio_app.py → app.py +6 -6
- requirements.txt +0 -0
gradio_app.py → app.py
RENAMED
@@ -42,16 +42,16 @@ def final(filepath):
|
|
42 |
|
43 |
def main(filepath):
|
44 |
response=final(filepath)
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
return response
|
50 |
|
51 |
mic_transcribe = gr.Interface(
|
52 |
fn=main,
|
53 |
inputs=gr.Audio(sources="microphone", type="filepath"),
|
54 |
-
outputs="
|
55 |
)
|
56 |
|
57 |
file_transcribe = gr.Interface(
|
|
|
42 |
|
43 |
def main(filepath):
|
44 |
response=final(filepath)
|
45 |
+
print(response)
|
46 |
+
myobj = gTTS(text=response, lang='en', slow=False)
|
47 |
+
myobj.save(filepath)
|
48 |
+
return filepath
|
49 |
+
# return response
|
50 |
|
51 |
mic_transcribe = gr.Interface(
|
52 |
fn=main,
|
53 |
inputs=gr.Audio(sources="microphone", type="filepath"),
|
54 |
+
outputs="audio",
|
55 |
)
|
56 |
|
57 |
file_transcribe = gr.Interface(
|
requirements.txt
ADDED
Binary file (2.67 kB). View file
|
|