VinayHajare commited on
Commit
09987bc
·
verified ·
1 Parent(s): 24291c0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -53,7 +53,7 @@ demo = gr.Blocks()
53
  mic_translate = gr.Interface(
54
  fn=speech_to_speech_translation,
55
  inputs=[gr.Audio(sources="microphone", type="filepath"),
56
- gr.Radio(["Male", "Female"], label="Voice", default="Male")],
57
  outputs=gr.Audio(label="Generated Speech", type="numpy"),
58
  title=title,
59
  description=description,
@@ -63,7 +63,7 @@ mic_translate = gr.Interface(
63
  file_translate = gr.Interface(
64
  fn=speech_to_speech_translation,
65
  inputs=[gr.Audio(sources="upload", type="filepath"),
66
- gr.Radio(["Male", "Female"], label="Voice", default="Male")],
67
  outputs=gr.Audio(label="Generated Speech", type="numpy"),
68
  title=title,
69
  description=description,
 
53
  mic_translate = gr.Interface(
54
  fn=speech_to_speech_translation,
55
  inputs=[gr.Audio(sources="microphone", type="filepath"),
56
+ gr.Radio(["Male", "Female"], label="Voice", value="Male")],
57
  outputs=gr.Audio(label="Generated Speech", type="numpy"),
58
  title=title,
59
  description=description,
 
63
  file_translate = gr.Interface(
64
  fn=speech_to_speech_translation,
65
  inputs=[gr.Audio(sources="upload", type="filepath"),
66
+ gr.Radio(["Male", "Female"], label="Voice", value="Male")],
67
  outputs=gr.Audio(label="Generated Speech", type="numpy"),
68
  title=title,
69
  description=description,