DemoLou commited on
Commit
31cc807
·
1 Parent(s): 904dd87

Update test.py

Browse files
Files changed (1) hide show
  1. test.py +4 -2
test.py CHANGED
@@ -123,12 +123,14 @@ def main(input):
123
  # wf.write('anime_girl3.wav', result[1][0], result[1][1])
124
  # print(type(result[1][0]), result[1][0])
125
  # download.click(None, [], [], _js=download_audio_js.format(audio_id=f"tts-audio{0}"))
126
- return result[1][1]
127
  # result[1][1]
128
  print(models_tts)
129
 
130
 
131
- demo = gr.Interface(fn=main, inputs="text", outputs=gr.outputs.Textbox(label="outputAudio"))
 
 
132
 
133
  if __name__ == "__main__":
134
  demo.launch(debug=True)
 
123
  # wf.write('anime_girl3.wav', result[1][0], result[1][1])
124
  # print(type(result[1][0]), result[1][0])
125
  # download.click(None, [], [], _js=download_audio_js.format(audio_id=f"tts-audio{0}"))
126
+ return result[1][0], result[1][1]
127
  # result[1][1]
128
  print(models_tts)
129
 
130
 
131
+ demo = gr.Interface(fn=main, inputs="text", "audio")
132
+
133
+ # outputs=gr.outputs.Textbox(label="outputAudio"))
134
 
135
  if __name__ == "__main__":
136
  demo.launch(debug=True)