RidhamChitre commited on
Commit
c9d3908
·
1 Parent(s): fe1b089

modified and renamed app file and created requirements.txt file

Browse files
Files changed (2) hide show
  1. gradio_app.py → app.py +6 -6
  2. 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
- # 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="text",
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