Respair commited on
Commit
ede4e29
·
verified ·
1 Parent(s): e76f77d

Update demo.py

Browse files
Files changed (1) hide show
  1. demo.py +1 -7
demo.py CHANGED
@@ -106,9 +106,7 @@ def Client_Synthesize_Audio(text, voice, voice2_path, spk_id, vcsteps, embscale,
106
  voice2_arg = voice2_path
107
 
108
  try:
109
- if isinstance(client, DummyClient):
110
- raise ConnectionError("Gradio client not connected.")
111
-
112
  result = client.predict(
113
  text,
114
  voice,
@@ -136,9 +134,6 @@ def Client_PromptedSynth_Text(text, beta, t, diffusion_steps, embedding_scale, r
136
  print(f"English Mode: {language_checkbox}")
137
 
138
  try:
139
- if isinstance(client, DummyClient):
140
- raise ConnectionError("Gradio client not connected.")
141
-
142
  result = client.predict(
143
  text,
144
  beta,
@@ -166,7 +161,6 @@ Repo -> [Github](https://github.com/Respaired/Project_Kalliope)
166
 
167
 
168
  with gr.Blocks() as audio_inf:
169
- gr.Markdown("### Synthesize speech using a reference audio clip (default, uploaded, or from speaker ID).")
170
  with gr.Row():
171
  with gr.Column(scale=1):
172
  language_checkbox_audio = gr.Checkbox(label="English?", value=False,
 
106
  voice2_arg = voice2_path
107
 
108
  try:
109
+
 
 
110
  result = client.predict(
111
  text,
112
  voice,
 
134
  print(f"English Mode: {language_checkbox}")
135
 
136
  try:
 
 
 
137
  result = client.predict(
138
  text,
139
  beta,
 
161
 
162
 
163
  with gr.Blocks() as audio_inf:
 
164
  with gr.Row():
165
  with gr.Column(scale=1):
166
  language_checkbox_audio = gr.Checkbox(label="English?", value=False,