kevinwang676 commited on
Commit
dcef39a
1 Parent(s): 058e35b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -310,7 +310,7 @@ with gr.Blocks(title="ChatGLM2-6B-int4", theme=gr.themes.Soft(text_size="sm")) a
310
  """<center><a href="https://huggingface.co/spaces/mikeee/chatglm2-6b-4bit?duplicate=true"><img src="https://bit.ly/3gLdBN6" alt="Duplicate Space"></a>To avoid the queue and for faster inference Duplicate this Space and upgrade to GPU</center>"""
311
  )
312
 
313
- with gr.Accordion("🎈 Info", open=False):
314
  _ = f"""
315
  ## {model_name}
316
  Try to refresh the browser and try again when occasionally an error occurs.
@@ -340,7 +340,7 @@ with gr.Blocks(title="ChatGLM2-6B-int4", theme=gr.themes.Soft(text_size="sm")) a
340
  deleteBtn = gr.Button("删除最新一轮对话", variant="secondary")
341
  retryBtn = gr.Button("重新生成最新一轮对话", variant="secondary")
342
 
343
- with gr.Accordion("更多设置", open=False):
344
  with gr.Row():
345
  emptyBtn = gr.Button("清空所有聊天记录")
346
  max_length = gr.Slider(
@@ -372,8 +372,8 @@ with gr.Blocks(title="ChatGLM2-6B-int4", theme=gr.themes.Soft(text_size="sm")) a
372
  model_choice = gr.Dropdown(choices=["FreeVC", "FreeVC-s", "FreeVC (24kHz)"], value="FreeVC (24kHz)", label="Model", visible=False)
373
  audio1 = output_audio
374
  audio2 = gr.Audio(label="请上传您喜欢的声音进行声音克隆", type='filepath')
375
- clone_btn = gr.Button("开始AI声音克隆吧")
376
- audio_cloned = gr.Audio(label="为您生成的专属声音克隆音频", type='filepath')
377
 
378
  clone_btn.click(convert, inputs=[model_choice, audio1, audio2], outputs=[audio_cloned])
379
 
 
310
  """<center><a href="https://huggingface.co/spaces/mikeee/chatglm2-6b-4bit?duplicate=true"><img src="https://bit.ly/3gLdBN6" alt="Duplicate Space"></a>To avoid the queue and for faster inference Duplicate this Space and upgrade to GPU</center>"""
311
  )
312
 
313
+ with gr.Accordion("📒 相关信息", open=False):
314
  _ = f"""
315
  ## {model_name}
316
  Try to refresh the browser and try again when occasionally an error occurs.
 
340
  deleteBtn = gr.Button("删除最新一轮对话", variant="secondary")
341
  retryBtn = gr.Button("重新生成最新一轮对话", variant="secondary")
342
 
343
+ with gr.Accordion("🔧 更多设置", open=False):
344
  with gr.Row():
345
  emptyBtn = gr.Button("清空所有聊天记录")
346
  max_length = gr.Slider(
 
372
  model_choice = gr.Dropdown(choices=["FreeVC", "FreeVC-s", "FreeVC (24kHz)"], value="FreeVC (24kHz)", label="Model", visible=False)
373
  audio1 = output_audio
374
  audio2 = gr.Audio(label="请上传您喜欢的声音进行声音克隆", type='filepath')
375
+ clone_btn = gr.Button("开始AI声音克隆吧", variant="primary")
376
+ audio_cloned = gr.Audio(label="为您生成的专属声音克隆音频", type='filepath', interactive=False)
377
 
378
  clone_btn.click(convert, inputs=[model_choice, audio1, audio2], outputs=[audio_cloned])
379