AdalAbilbekov commited on
Commit
83210ed
1 Parent(s): 9e9a056
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -65,9 +65,9 @@ vocoder.remove_weight_norm()
65
  emotions = sorted(["angry", "surprise", "fear", "happy", "neutral", "sad"])
66
  spekears = ['Madi', 'Marzhan', 'Akzhol']
67
 
68
- def generate_audio(text, quantity, guid, speaker, emotion_1, emotion_2):
69
  y_dec = torch.tensor([torch.nan])
70
- gui = guid
71
  while torch.isnan(y_dec).sum() != 0:
72
  x, x_lengths = convert_text(text)
73
  emo_1, emo_2 = emotions.index(emotion_1), emotions.index(emotion_2)
@@ -109,7 +109,7 @@ demo = gr.Interface(
109
  [
110
  gr.Textbox(value='Батпақ соры шабындыққа және жыл бойғы жайылымға пайдаланылады.', label="Text you want to synthesize"),
111
  gr.Slider(0, 100, value=50, step=10, label="Count", info="Choose between 0 and 100"),
112
- gr.Slider(0, 1000, value=100, step=10, label="Guidance", info="Choose between 0 and 1000"),
113
  gr.Dropdown(spekears, value=spekears[1], label="Narrator", info="Select a narrator."
114
  ),
115
  gr.Dropdown(emotions, value=emotions[0], label="Emotion 1", info="Select first emotion"),
 
65
  emotions = sorted(["angry", "surprise", "fear", "happy", "neutral", "sad"])
66
  spekears = ['Madi', 'Marzhan', 'Akzhol']
67
 
68
+ def generate_audio(text, quantity, speaker, emotion_1, emotion_2):
69
  y_dec = torch.tensor([torch.nan])
70
+ gui = 300
71
  while torch.isnan(y_dec).sum() != 0:
72
  x, x_lengths = convert_text(text)
73
  emo_1, emo_2 = emotions.index(emotion_1), emotions.index(emotion_2)
 
109
  [
110
  gr.Textbox(value='Батпақ соры шабындыққа және жыл бойғы жайылымға пайдаланылады.', label="Text you want to synthesize"),
111
  gr.Slider(0, 100, value=50, step=10, label="Count", info="Choose between 0 and 100"),
112
+ # gr.Slider(0, 1000, value=100, step=10, label="Guidance", info="Choose between 0 and 1000"),
113
  gr.Dropdown(spekears, value=spekears[1], label="Narrator", info="Select a narrator."
114
  ),
115
  gr.Dropdown(emotions, value=emotions[0], label="Emotion 1", info="Select first emotion"),