evalstate HF Staff commited on
Commit
f98f0a9
·
verified ·
1 Parent(s): 968f6fd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -6
app.py CHANGED
@@ -110,12 +110,13 @@ with gr.Blocks() as demo:
110
  label="Text to synthesize (max chars 300)",
111
  max_lines=5
112
  )
113
- ref_wav = gr.Audio(
114
- sources=["upload", "microphone"],
115
- type="filepath",
116
- label="Reference Audio File (Optional)",
117
- value="https://storage.googleapis.com/chatterbox-demo-samples/prompts/female_shadowheart4.flac"
118
- )
 
119
  exaggeration = gr.Slider(
120
  0.25, 2, step=.05, label="Exaggeration (Neutral = 0.5, extreme values can be unstable)", value=.5
121
  )
 
110
  label="Text to synthesize (max chars 300)",
111
  max_lines=5
112
  )
113
+ ref_wav = gr.TextBox(value=None,label="Audio Source Path")
114
+ # ref_wav = gr.Audio(
115
+ # sources=["upload", "microphone"],
116
+ # type="filepath",
117
+ # label="Reference Audio File (Optional)",
118
+ # value="https://storage.googleapis.com/chatterbox-demo-samples/prompts/female_shadowheart4.flac"
119
+ # )
120
  exaggeration = gr.Slider(
121
  0.25, 2, step=.05, label="Exaggeration (Neutral = 0.5, extreme values can be unstable)", value=.5
122
  )