unilight commited on
Commit
7c6da25
1 Parent(s): b7ad4c6

gradio version update

Browse files
Files changed (2) hide show
  1. app.py +2 -2
  2. models/sslmos.py +2 -0
app.py CHANGED
@@ -139,7 +139,7 @@ with gr.Blocks(title="S3PRL-VC: Any-to-one voice conversion demo on VCC2020") as
139
  with gr.Row():
140
  with gr.Column():
141
  gr.Markdown("## Record your speech here!")
142
- input_wav = gr.Audio(label="Input speech", source='microphone', type='filepath')
143
 
144
  gr.Markdown("## Select a model!")
145
  model_name = gr.Radio(label="Model", choices=list(model_paths.keys()))
@@ -171,7 +171,7 @@ with gr.Blocks(title="S3PRL-VC: Any-to-one voice conversion demo on VCC2020") as
171
  if __name__ == '__main__':
172
  try:
173
  demo.launch(debug=True,
174
- enable_queue=True,
175
  )
176
  except KeyboardInterrupt as e:
177
  print(e)
 
139
  with gr.Row():
140
  with gr.Column():
141
  gr.Markdown("## Record your speech here!")
142
+ input_wav = gr.Audio(label="Input speech", sources='microphone', type='filepath')
143
 
144
  gr.Markdown("## Select a model!")
145
  model_name = gr.Radio(label="Model", choices=list(model_paths.keys()))
 
171
  if __name__ == '__main__':
172
  try:
173
  demo.launch(debug=True,
174
+ # enable_queue=True,
175
  )
176
  except KeyboardInterrupt as e:
177
  print(e)
models/sslmos.py CHANGED
@@ -14,6 +14,8 @@ from .modules import Projection
14
  class SSLMOS(torch.nn.Module):
15
  def __init__(
16
  self,
 
 
17
  # model related
18
  ssl_module: str,
19
  s3prl_name: str,
 
14
  class SSLMOS(torch.nn.Module):
15
  def __init__(
16
  self,
17
+ # dummy, for signature need
18
+ model_input: str,
19
  # model related
20
  ssl_module: str,
21
  s3prl_name: str,