
    xi                         S r SSKrS\4S jrg)zZ
Gradio UI Dataset Section Module
Contains dataset explorer section component definitions
    Nreturnc                    [         R                  " SSSS9   [         R                  " SS9   [         R                  " SS/SSS	S
/SS9n[         R                  " SSSS9n[         R                  " / SQSSSS
/SS9n[         R
                  " SSSS
/SS9nSSS5        [         R
                  " SSSSS9n[         R                  " 5       n[         R                  " SSS9   [         R                  " SS SS!S"9nSSS5        [         R                  " SS9   [         R                  " S#S$SS%S&9n[         R                  " S'S(SSS)9n	SSS5        [         R                  " SS9   [         R                  " S*S$SS%S&9n
[         R                  " S+S$SSS&9nSSS5        [         R                  " 5          [         R                  " S,SS-S.9nSSS5        [         R
                  " S/SS0S19n[         R                  " S2SS39nSSS5        WWWWWWWWW	W
WWWWS4.$ ! , (       d  f       GN~= f! , (       d  f       GN/= f! , (       d  f       N= f! , (       d  f       N= f! , (       d  f       N= f! , (       d  f       Nv= f)5zCreate dataset explorer sectionu   📊 Dataset ExplorerF)openvisibleT)equal_heighttraintestDatasetzChoose dataset to explorezhas-info-container   )choicesvaluelabelinfoelem_classesscaleu   📥 Import Datasetprimary   )variantr   )keysidxrandomr   zSearch TypezHow to find itemszSearch Valuez,Enter keys or index (leave empty for random)z-Keys: exact match, Index: 0 to dataset size-1)r   placeholderr   r   r   Nu   📝 InstructionzNo instruction available)r   interactiver   linesu   📋 Item Metadata (JSON))r   zComplete Item Informationjson   )r   languager   r   zSource Audiofilepath   )r   typer   r   u   🔍 Get Item	secondary)r   r   r   zTarget AudiozReference AudiozUse Source Audio from Datasetz*Check to use the source audio from dataset)r   r   r   u   📊 Data Statusu   ❌ No dataset imported)r   r   r   u   📋 Auto-fill Generation Form)r   )dataset_typeimport_dataset_btnsearch_typesearch_valueinstruction_displayrepaint_viz_plotitem_info_jsonitem_src_audioget_item_btnitem_target_audioitem_refer_audiouse_src_checkboxdata_statusauto_fill_btn)
gr	AccordionRowDropdownButtonTextboxPlotCodeAudioCheckbox)dataset_handlerr"   r#   r$   r%   r&   r'   r(   r)   r*   r+   r,   r-   r.   r/   s                  C/mnt/workspace/ACE-Step-1.5/acestep/ui/gradio/interfaces/dataset.pycreate_dataset_sectionr<      sY   	-E5	IVV&;; &)0@T?UL "$+@)[\!]++1#(8L7MK ::$JDThSi	L# '0 !jj$2	
 779\\5EBWW1!	N C VV&XX$!	N 99_kW\defL ' VV& "$!	!  "xx'!	  ' VVX!{{5A   jj'9uTmn		"BIVS 
JX %0"$2,(($.,,"& U '&B CB '& '& XC 
J	Is   I"A(HA	I"H5I"/H/ I"/I I"(I?3I"
H	I"
H,	'I"/
H=	9I" 
I	
I"
I	I""
I0)__doc__gradior0   dictr<        r;   <module>rB      s    \t \rA   