ekwek commited on
Commit
2cf68bf
·
verified ·
1 Parent(s): 5d9390a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -9
app.py CHANGED
@@ -89,7 +89,7 @@ with gr.Blocks(title="Soprano TTS") as demo:
89
  **Running on: {DEVICE.upper()}**
90
 
91
  **GitHub:** https://github.com/ekwek1/soprano
92
- **Model Weights:** https://huggingface.co/ekwek/Soprano-80M
93
  **Model Demo:** https://huggingface.co/spaces/ekwek/Soprano-TTS
94
  """
95
  )
@@ -104,9 +104,9 @@ with gr.Blocks(title="Soprano TTS") as demo:
104
  )
105
  with gr.Accordion("Advanced Settings", open=False):
106
  temperature = gr.Slider(
107
- minimum=0.1,
108
- maximum=1.5,
109
- value=0.3,
110
  step=0.05,
111
  label="Temperature",
112
  )
@@ -139,10 +139,10 @@ with gr.Blocks(title="Soprano TTS") as demo:
139
  )
140
  gr.Examples(
141
  examples=[
142
- ["Soprano is an extremely lightweight text to speech model.", 0.3, 0.95, 1.2],
143
- ["Artificial intelligence is transforming the world.", 0.5, 0.90, 1.2],
144
- ["I'm so excited, I can't even wait!", 0.3, 0.95, 1.2],
145
- ["Why don't you go ahead and try it?", 0.3, 0.95, 1.2],
146
  ],
147
  inputs=[text_input, temperature, top_p, repetition_penalty],
148
  label="Example Prompts",
@@ -156,7 +156,7 @@ with gr.Blocks(title="Soprano TTS") as demo:
156
  f"""
157
  ### Usage tips:
158
  - Note: Soprano is currently **English-only**. Other languages are not guaranteed to work.
159
- - Soprano works best when each sentence is between 2 and 15 seconds long.
160
  - Although Soprano recognizes numbers and some special characters, it occasionally mispronounces them.
161
  Best results can be achieved by converting these into their phonetic form.
162
  (1+1 -> one plus one, etc)
 
89
  **Running on: {DEVICE.upper()}**
90
 
91
  **GitHub:** https://github.com/ekwek1/soprano
92
+ **Model Weights:** https://huggingface.co/ekwek/Soprano-1.1-80M
93
  **Model Demo:** https://huggingface.co/spaces/ekwek/Soprano-TTS
94
  """
95
  )
 
104
  )
105
  with gr.Accordion("Advanced Settings", open=False):
106
  temperature = gr.Slider(
107
+ minimum=0.0,
108
+ maximum=1.0,
109
+ value=0.0,
110
  step=0.05,
111
  label="Temperature",
112
  )
 
139
  )
140
  gr.Examples(
141
  examples=[
142
+ ["Soprano is an extremely lightweight text to speech model.", 0.0, 0.95, 1.2],
143
+ ["Artificial intelligence is transforming the world.", 0.0, 0.90, 1.2],
144
+ ["I'm so excited, I can't even wait!", 0.0, 0.95, 1.2],
145
+ ["Why don't you go ahead and try it?", 0.0, 0.95, 1.2],
146
  ],
147
  inputs=[text_input, temperature, top_p, repetition_penalty],
148
  label="Example Prompts",
 
156
  f"""
157
  ### Usage tips:
158
  - Note: Soprano is currently **English-only**. Other languages are not guaranteed to work.
159
+ - Soprano works best when each sentence is between 2 and 30 seconds long.
160
  - Although Soprano recognizes numbers and some special characters, it occasionally mispronounces them.
161
  Best results can be achieved by converting these into their phonetic form.
162
  (1+1 -> one plus one, etc)