Spaces:
Running
on
T4
Running
on
T4
Enable torch.compile by default
Browse files
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(
|
124 |
pipe.generate("WhisperSpeech warmup")
|
125 |
|
126 |
-
demo.launch(
|
|
|
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()
|