Spaces:
Runtime error
Runtime error
Commit
·
bbc001b
1
Parent(s):
95b3209
update readme
Browse files
app.py
CHANGED
|
@@ -13,7 +13,7 @@ def gen_tts(text, history_prompt, temp_semantic, temp_waveform):
|
|
| 13 |
if history_prompt == "Unconditional":
|
| 14 |
history_prompt = None
|
| 15 |
else:
|
| 16 |
-
history_prompt = history_prompt.lower().replace(" ", "_")
|
| 17 |
if DEBUG_MODE:
|
| 18 |
audio_arr = np.zeros(SAMPLE_RATE)
|
| 19 |
else:
|
|
@@ -27,7 +27,7 @@ iface = gr.Interface(
|
|
| 27 |
inputs=[
|
| 28 |
gr.Textbox(label="Input Text", lines=3, value=default_text),
|
| 29 |
gr.Dropdown(
|
| 30 |
-
["Unconditional"] + [f"
|
| 31 |
value="None", label="Acoustic Prompt", info="This choice primes the model on how to condition the generated audio."
|
| 32 |
),
|
| 33 |
gr.Slider(minimum=0, maximum=1, step=0.01, value=0.7, label="Temp 1", info="Gen. temperature of semantic tokens. (lower is more conservative, higher is more diverse)"),
|
|
|
|
| 13 |
if history_prompt == "Unconditional":
|
| 14 |
history_prompt = None
|
| 15 |
else:
|
| 16 |
+
history_prompt = history_prompt.lower().replace(" ", "_").replace("speaker", "speech")
|
| 17 |
if DEBUG_MODE:
|
| 18 |
audio_arr = np.zeros(SAMPLE_RATE)
|
| 19 |
else:
|
|
|
|
| 27 |
inputs=[
|
| 28 |
gr.Textbox(label="Input Text", lines=3, value=default_text),
|
| 29 |
gr.Dropdown(
|
| 30 |
+
["Unconditional"] + [f"Speaker {n}" for n in range(8)] + [f"Music {n}" for n in range(6)],
|
| 31 |
value="None", label="Acoustic Prompt", info="This choice primes the model on how to condition the generated audio."
|
| 32 |
),
|
| 33 |
gr.Slider(minimum=0, maximum=1, step=0.01, value=0.7, label="Temp 1", info="Gen. temperature of semantic tokens. (lower is more conservative, higher is more diverse)"),
|