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

Rewrote the welcome message, added footer

Browse files
Files changed (1) hide show
  1. app.py +17 -14
app.py CHANGED
@@ -14,13 +14,27 @@ WhisperSpeech is an Open Source text-to-speech system built by Collabora and LAI
14
  The model is fully open and you can run it on your local hardware. It's like **Stable Diffusion but for speech**
15
  – both powerful and easily customizable.
16
 
17
- To use it locally:
 
 
 
 
 
 
 
 
 
 
 
 
 
 
18
 
19
  ```
20
  pip install -U WhisperSpeech
21
  ```
22
 
23
- and later:
24
 
25
  ```
26
  from whisperspeech.pipeline import Pipeline
@@ -28,18 +42,6 @@ from whisperspeech.pipeline import Pipeline
28
  pipe = Pipeline(torch_compile=True)
29
  pipe.generate_to_file("output.wav", "Hello from WhisperSpeech.")
30
  ```
31
-
32
- [Contribute to WhisperSpeech on ![Static Badge](https://img.shields.io/badge/GitHub-blue)](https://github.com/collabora/WhisperSpeech)
33
- or join discussion on [![](https://dcbadge.vercel.app/api/server/FANw4rHD5E)](https://discord.gg/FANw4rHD5E) or on
34
- [![Static Badge](https://img.shields.io/badge/GitHub-Discussions-green)](https://github.com/collabora/WhisperSpeech/discussions).
35
-
36
- Huge thanks to [Tonic](https://huggingface.co/Tonic) who helped build this Space for WhisperSpeech.
37
-
38
- ### How to Use It
39
-
40
- Write you text in the box, you can use language tags (`<en>` or `<pl>`) to create multilingual speech.
41
- Optionally you can upload a speech sample or give it a file URL to clone an existing voice. Check out the
42
- examples at the bottom of the page for inspiration.
43
  """
44
 
45
 
@@ -119,6 +121,7 @@ with gr.Blocks() as demo:
119
  )
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")
 
14
  The model is fully open and you can run it on your local hardware. It's like **Stable Diffusion but for speech**
15
  – both powerful and easily customizable.
16
 
17
+ [You can contribute to WhisperSpeech on Github.](https://github.com/collabora/WhisperSpeech)
18
+ You can also join the discussion on Discord [![](https://dcbadge.vercel.app/api/server/FANw4rHD5E)](https://discord.gg/FANw4rHD5E)
19
+
20
+ Huge thanks to [Tonic](https://huggingface.co/Tonic) who helped build this Space for WhisperSpeech.
21
+
22
+ ### How to Use It
23
+
24
+ Write you text in the box, you can use language tags (`<en>` or `<pl>`) to create multilingual speech.
25
+ Optionally you can upload a speech sample or give it a file URL to clone an existing voice. Check out the
26
+ examples at the bottom of the page for inspiration.
27
+ """
28
+
29
+ footer = """
30
+
31
+ ### How to use it locally
32
 
33
  ```
34
  pip install -U WhisperSpeech
35
  ```
36
 
37
+ Afterwards:
38
 
39
  ```
40
  from whisperspeech.pipeline import Pipeline
 
42
  pipe = Pipeline(torch_compile=True)
43
  pipe.generate_to_file("output.wav", "Hello from WhisperSpeech.")
44
  ```
 
 
 
 
 
 
 
 
 
 
 
 
45
  """
46
 
47
 
 
121
  )
122
 
123
  generate_button.click(whisper_speech_demo, inputs=[text_input, speaker_input, url_input, cps], outputs=output_audio)
124
+ gr.Markdown(footer)
125
 
126
  pipe = Pipeline(torch_compile=True)
127
  pipe.generate("WhisperSpeech warmup")