LPhilp1943 commited on
Commit
46c13ab
1 Parent(s): 265df29

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -10
app.py CHANGED
@@ -50,16 +50,16 @@ iface = gr.Interface(
50
  "Text to Speech": text_to_speech,
51
  "Speech to Speech": speech_to_speech
52
  },
53
- inputs={
54
- "Speech to Text": gr.inputs.Audio(source="upload", type="file"),
55
- "Text to Speech": gr.inputs.Textbox(label="Text"),
56
- "Speech to Speech": [gr.inputs.Audio(source="upload", type="file"), gr.inputs.Textbox(label="Target Text")]
57
- },
58
- outputs={
59
- "Speech to Text": gr.outputs.Textbox(label="Transcription"),
60
- "Text to Speech": gr.outputs.Audio(type="file", label="Synthesized Speech"),
61
- "Speech to Speech": gr.outputs.Audio(type="file", label="Synthesized Speech")
62
- },
63
  title="Speech Processing Application",
64
  description="This app uses Facebook's Wav2Vec 2.0 for speech-to-text and VITS for text-to-speech.",
65
  layout="vertical"
 
50
  "Text to Speech": text_to_speech,
51
  "Speech to Speech": speech_to_speech
52
  },
53
+ inputs=[
54
+ gr.Audio(source="upload", type="file", label="Speech to Text"),
55
+ gr.Textbox(label="Text to Speech"),
56
+ gr.Audio(source="upload", type="file", label="Speech to Speech Input") + gr.Textbox(label="Target Text for Speech to Speech")
57
+ ],
58
+ outputs=[
59
+ gr.Textbox(label="Transcription"),
60
+ gr.Audio(label="Synthesized Speech"),
61
+ gr.Audio(label="Speech to Speech Output")
62
+ ],
63
  title="Speech Processing Application",
64
  description="This app uses Facebook's Wav2Vec 2.0 for speech-to-text and VITS for text-to-speech.",
65
  layout="vertical"