Nah_kagz1092 commited on
Commit
9bc0333
·
verified ·
1 Parent(s): 3c2bbf3

Update DoanMaGocNhungDcRemake.py

Browse files
Files changed (1) hide show
  1. DoanMaGocNhungDcRemake.py +8 -8
DoanMaGocNhungDcRemake.py CHANGED
@@ -4,7 +4,7 @@ from easyfuncs import download_from_url, CachedModels
4
  os.makedirs("dataset",exist_ok=True)
5
  model_library = CachedModels()
6
 
7
- with gr.Blocks(title="💕❤️ BẢO TRÂN VÀ NHƯ Ý ❤️💕",theme=gr.themes.Base(primary_hue="rose",neutral_hue="zinc")) as app:
8
  with gr.Row():
9
  gr.HTML("<img src='file/a.png' alt='image'>")
10
  with gr.Tabs():
@@ -166,7 +166,7 @@ with gr.Blocks(title="💕❤️ BẢO TRÂN VÀ NHƯ Ý ❤️💕",theme=gr.th
166
  with gr.TabItem("Tải mô hình"):
167
  with gr.Row():
168
  url_input = gr.Textbox(label="URL mô hình", value="",placeholder="https://...", scale=6)
169
- name_output = gr.Textbox(label="Lưu", value="",placeholder="MyModel",scale=2)
170
  url_download = gr.Button(value="Tải mô hình",scale=2)
171
  url_download.click(
172
  inputs=[url_input,name_output],
@@ -174,7 +174,7 @@ with gr.Blocks(title="💕❤️ BẢO TRÂN VÀ NHƯ Ý ❤️💕",theme=gr.th
174
  fn=download_from_url,
175
  )
176
  with gr.Row():
177
- model_browser = gr.Dropdown(choices=list(model_library.models.keys()),label="OR Search Models (Quality UNKNOWN)",scale=5)
178
  download_from_browser = gr.Button(value="Get",scale=2)
179
  download_from_browser.click(
180
  inputs=[model_browser],
@@ -201,7 +201,7 @@ with gr.Blocks(title="💕❤️ BẢO TRÂN VÀ NHƯ Ý ❤️💕",theme=gr.th
201
  visible=False
202
  )
203
  if_f0_3 = gr.Radio(
204
- label="Will your model be used for singing? If not, you can ignore this.",
205
  choices=[True, False],
206
  value=True,
207
  interactive=True,
@@ -218,7 +218,7 @@ with gr.Blocks(title="💕❤️ BẢO TRÂN VÀ NHƯ Ý ❤️💕",theme=gr.th
218
  label="dataset folder", value='dataset'
219
  )
220
  easy_uploader = gr.Files(label="Kéo file chứa giọng xuống đây nhớ tách nhạc trước",file_types=['audio'])
221
- but1 = gr.Button("1. Process", variant="primary")
222
  info1 = gr.Textbox(label="Information", value="",visible=True)
223
  easy_uploader.upload(inputs=[dataset_folder],outputs=[],fn=lambda folder:os.makedirs(folder,exist_ok=True))
224
  easy_uploader.upload(
@@ -226,13 +226,13 @@ with gr.Blocks(title="💕❤️ BẢO TRÂN VÀ NHƯ Ý ❤️💕",theme=gr.th
226
  inputs=[easy_uploader, dataset_folder],
227
  outputs=[])
228
  gpus6 = gr.Textbox(
229
- label="Enter the GPU numbers to use separated by -, (e.g. 0-1-2)",
230
  value=gpus,
231
  interactive=True,
232
  visible=F0GPUVisible,
233
  )
234
  gpu_info9 = gr.Textbox(
235
- label="GPU Info", value=gpu_info, visible=F0GPUVisible
236
  )
237
  spk_id5 = gr.Slider(
238
  minimum=0,
@@ -262,7 +262,7 @@ with gr.Blocks(title="💕❤️ BẢO TRÂN VÀ NHƯ Ý ❤️💕",theme=gr.th
262
  interactive=True,
263
  visible=F0GPUVisible,
264
  )
265
- but2 = gr.Button("2. Extract Features", variant="primary")
266
  info2 = gr.Textbox(label="Information", value="", max_lines=8)
267
  f0method8.change(
268
  fn=change_f0_method,
 
4
  os.makedirs("dataset",exist_ok=True)
5
  model_library = CachedModels()
6
 
7
+ with gr.Blocks(title="💕❤️BẢO TRÂN VÀ NHƯ Ý❤️💕",theme=gr.themes.Base(primary_hue="rose",neutral_hue="zinc")) as app:
8
  with gr.Row():
9
  gr.HTML("<img src='file/a.png' alt='image'>")
10
  with gr.Tabs():
 
166
  with gr.TabItem("Tải mô hình"):
167
  with gr.Row():
168
  url_input = gr.Textbox(label="URL mô hình", value="",placeholder="https://...", scale=6)
169
+ name_output = gr.Textbox(label="Lưu", value="",placeholder="MoHinhCuaToi",scale=2)
170
  url_download = gr.Button(value="Tải mô hình",scale=2)
171
  url_download.click(
172
  inputs=[url_input,name_output],
 
174
  fn=download_from_url,
175
  )
176
  with gr.Row():
177
+ model_browser = gr.Dropdown(choices=list(model_library.models.keys()),label="OR Search Models (Quality UNKNOWN) cái này sẽ sớm bị loại bỏ",scale=5)
178
  download_from_browser = gr.Button(value="Get",scale=2)
179
  download_from_browser.click(
180
  inputs=[model_browser],
 
201
  visible=False
202
  )
203
  if_f0_3 = gr.Radio(
204
+ label="Liệu hình của bạn được sử dụng để hát không? Nếu không, bạn thể bỏ qua câu hỏi này.",
205
  choices=[True, False],
206
  value=True,
207
  interactive=True,
 
218
  label="dataset folder", value='dataset'
219
  )
220
  easy_uploader = gr.Files(label="Kéo file chứa giọng xuống đây nhớ tách nhạc trước",file_types=['audio'])
221
+ but1 = gr.Button("1. Quy trình ", variant="primary")
222
  info1 = gr.Textbox(label="Information", value="",visible=True)
223
  easy_uploader.upload(inputs=[dataset_folder],outputs=[],fn=lambda folder:os.makedirs(folder,exist_ok=True))
224
  easy_uploader.upload(
 
226
  inputs=[easy_uploader, dataset_folder],
227
  outputs=[])
228
  gpus6 = gr.Textbox(
229
+ label="Nhập số thứ tự GPU bạn muốn sử dụng, cách nhau bởi dấu gạch ngang (-), ví dụ: 0-1-2.",
230
  value=gpus,
231
  interactive=True,
232
  visible=F0GPUVisible,
233
  )
234
  gpu_info9 = gr.Textbox(
235
+ label="Thông tin của GPU/Đơn vị xử lý đồ họa (Graphics Processing Unit)", value=gpu_info, visible=F0GPUVisible
236
  )
237
  spk_id5 = gr.Slider(
238
  minimum=0,
 
262
  interactive=True,
263
  visible=F0GPUVisible,
264
  )
265
+ but2 = gr.Button("2. Xây dựng bộ đặc trưng", variant="primary")
266
  info2 = gr.Textbox(label="Information", value="", max_lines=8)
267
  f0method8.change(
268
  fn=change_f0_method,