Pendrokar commited on
Commit
79e5c13
β€’
1 Parent(s): f2cf91b

hf models path fix; max_lines

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -29,9 +29,9 @@ current_voice_model = None
29
  # move models to a more persistant place
30
  try:
31
  for voice_model_name in voice_model_names:
32
- os.rename(hf_cache_path +'/'+ voice_model_name + '.pt', models_path + voice_model_name + '.pt')
33
- os.rename(hf_cache_path +'/'+ voice_model_name + '.json', models_path + voice_model_name + '.json')
34
- os.rename(hf_cache_path +'/'+ voice_model_name + '.wav', models_path + voice_model_name + '.wav')
35
  except Exception as e:
36
  print('Failed to move downloaded models, perhaps already moved')
37
 
@@ -129,6 +129,7 @@ def predict(input_text, pacing):
129
  input_textbox = gr.Textbox(
130
  label="Input Text",
131
  lines=1,
 
132
  autofocus=True
133
  )
134
  pacing_slider = gr.Slider(0.5, 2.0, value=1.0, step=0.1, label="Pacing")
 
29
  # move models to a more persistant place
30
  try:
31
  for voice_model_name in voice_model_names:
32
+ os.rename(hf_cache_models_path +'/'+ voice_model_name + '.pt', models_path + voice_model_name + '.pt')
33
+ os.rename(hf_cache_models_path +'/'+ voice_model_name + '.json', models_path + voice_model_name + '.json')
34
+ os.rename(hf_cache_models_path +'/'+ voice_model_name + '.wav', models_path + voice_model_name + '.wav')
35
  except Exception as e:
36
  print('Failed to move downloaded models, perhaps already moved')
37
 
 
129
  input_textbox = gr.Textbox(
130
  label="Input Text",
131
  lines=1,
132
+ max_lines=5,
133
  autofocus=True
134
  )
135
  pacing_slider = gr.Slider(0.5, 2.0, value=1.0, step=0.1, label="Pacing")