sanchit-gandhi HF staff commited on
Commit
054adf6
1 Parent(s): c90fcd7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -98,7 +98,7 @@ def verify_demo(repo_id):
98
 
99
  message = PASS_MESSAGE.replace("USER", user_name)
100
 
101
- return message, (sampling_rate, audio), label_outputs
102
 
103
 
104
  demo = gr.Interface(
@@ -106,6 +106,7 @@ demo = gr.Interface(
106
  inputs=gr.Textbox(placeholder="course-demos/speech-to-speech-translation", label="Repo id or URL of your demo"),
107
  outputs=[
108
  gr.Textbox(label="Status"),
 
109
  gr.Audio(label="Generated Speech", type="numpy"),
110
  gr.Label(label="Language prediction"),
111
  ],
 
98
 
99
  message = PASS_MESSAGE.replace("USER", user_name)
100
 
101
+ return message, "test_short.wav", (sampling_rate, audio), label_outputs
102
 
103
 
104
  demo = gr.Interface(
 
106
  inputs=gr.Textbox(placeholder="course-demos/speech-to-speech-translation", label="Repo id or URL of your demo"),
107
  outputs=[
108
  gr.Textbox(label="Status"),
109
+ gr.Audio(label="Source Speech", type="filepath"),
110
  gr.Audio(label="Generated Speech", type="numpy"),
111
  gr.Label(label="Language prediction"),
112
  ],