ekwek commited on
Commit
f0ac9ac
·
verified ·
1 Parent(s): 744f1d7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -5
app.py CHANGED
@@ -30,7 +30,7 @@ def tts_stream(text, temperature, top_p, repetition_penalty, state):
30
  chunks = []
31
  stream = model.infer_stream(
32
  text,
33
- chunk_size=3,
34
  temperature=temperature,
35
  top_p=top_p,
36
  repetition_penalty=repetition_penalty,
@@ -62,7 +62,7 @@ with gr.Blocks() as demo:
62
 
63
  with gr.Row():
64
  with gr.Column():
65
- gr.Markdown("## Soprano Demo")
66
 
67
  text_in = gr.Textbox(
68
  label="Input Text",
@@ -93,11 +93,12 @@ with gr.Blocks() as demo:
93
  file_out = gr.File(label="Download file")
94
  gr.Markdown(
95
  "Usage tips: (placeholder)\n\n"
96
- "- Tip 1\n"
97
- "- Tip 2\n"
98
- "- Tip 3"
99
  )
100
 
 
101
  gen_btn.click(
102
  fn=tts_stream,
103
  inputs=[text_in, temperature, top_p, repetition_penalty, state_audio],
 
30
  chunks = []
31
  stream = model.infer_stream(
32
  text,
33
+ chunk_size=5,
34
  temperature=temperature,
35
  top_p=top_p,
36
  repetition_penalty=repetition_penalty,
 
62
 
63
  with gr.Row():
64
  with gr.Column():
65
+ gr.Markdown("# Soprano Demo")
66
 
67
  text_in = gr.Textbox(
68
  label="Input Text",
 
93
  file_out = gr.File(label="Download file")
94
  gr.Markdown(
95
  "Usage tips: (placeholder)\n\n"
96
+ "- Soprano works best when each sentence is between 2 and 15 seconds long.\n"
97
+ "- Although Soprano recognizes numbers and some special characters, it occasionally mispronounces them. Best results can be achieved by converting these into their phonetic form. (1+1 -> one plus one, etc)\n"
98
+ "- If Soprano produces unsatisfactory results, you can easily regenerate it for a new, potentially better generation. You may also change the sampling settings for more varied results."
99
  )
100
 
101
+
102
  gen_btn.click(
103
  fn=tts_stream,
104
  inputs=[text_in, temperature, top_p, repetition_penalty, state_audio],