kevinwang676 commited on
Commit
d7a6b5a
·
1 Parent(s): a92bd3b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -202,14 +202,15 @@ with gr.Blocks() as demo_s2st:
202
  label="同声传译后的语音",
203
  autoplay=False,
204
  streaming=False,
205
- type="numpy",
 
206
  )
207
  output_text = gr.Textbox(label="翻译后的文本")
208
  audio_vc = gr.Audio(
209
  label="相同音色的AI专属语音",
210
  autoplay=False,
211
  streaming=False,
212
- type="numpy",
213
  )
214
 
215
  gr.Examples(
@@ -433,7 +434,7 @@ with gr.Blocks() as demo_asr:
433
  )
434
 
435
 
436
- with gr.Blocks(css="style.css") as demo:
437
  gr.Markdown(DESCRIPTION)
438
  gr.DuplicateButton(
439
  value="Duplicate Space for private use",
@@ -455,4 +456,4 @@ with gr.Blocks(css="style.css") as demo:
455
 
456
 
457
  if __name__ == "__main__":
458
- demo.queue(max_size=50).launch()
 
202
  label="同声传译后的语音",
203
  autoplay=False,
204
  streaming=False,
205
+ type="filepath",
206
+ interactive=False,
207
  )
208
  output_text = gr.Textbox(label="翻译后的文本")
209
  audio_vc = gr.Audio(
210
  label="相同音色的AI专属语音",
211
  autoplay=False,
212
  streaming=False,
213
+ type="filepath",
214
  )
215
 
216
  gr.Examples(
 
434
  )
435
 
436
 
437
+ with gr.Blocks() as demo:
438
  gr.Markdown(DESCRIPTION)
439
  gr.DuplicateButton(
440
  value="Duplicate Space for private use",
 
456
 
457
 
458
  if __name__ == "__main__":
459
+ demo.queue(max_size=50).launch(show_error=True)