jpc commited on
Commit
01f2524
1 Parent(s): 30d1141

Enable torch.compile by default

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -120,7 +120,7 @@ with gr.Blocks() as demo:
120
 
121
  generate_button.click(whisper_speech_demo, inputs=[text_input, speaker_input, url_input, cps], outputs=output_audio)
122
 
123
- pipe = Pipeline()#torch_compile=True)
124
  pipe.generate("WhisperSpeech warmup")
125
 
126
- demo.launch(server_port=3000)#, share=True)
 
120
 
121
  generate_button.click(whisper_speech_demo, inputs=[text_input, speaker_input, url_input, cps], outputs=output_audio)
122
 
123
+ pipe = Pipeline(torch_compile=True)
124
  pipe.generate("WhisperSpeech warmup")
125
 
126
+ demo.launch()