o
    à¥µi[  ã                   @   s:   d dl mZ d dlmZ d dlmZ dee fdd„ZdS )é    )ÚList)Ú
OutputKeys)ÚConversationalTextToSqlPipelineÚ	pipelinesc                 C   st   |D ]5}dg }}| d D ])}|||| d | d dœ}||ƒ}t d|iƒ t |ƒ |tj tj }| |¡ qqd S )NÚ Ú	utteranceÚdatabase_idÚlocal_db_path)r   ÚhistoryÚlast_sqlr   r	   Úquestion)Úprintr   ÚOUTPUTÚTEXTÚappend)Ú	test_caser   Úpr   r
   ÚitemÚcaseÚresults© r   úY/home/ubuntu/.local/lib/python3.10/site-packages/modelscope/utils/nlp/space_T_en/utils.pyÚ#text2sql_tracking_and_print_results	   s    
ûôþr   N)Útypingr   Úmodelscope.outputsr   Úmodelscope.pipelines.nlpr   r   r   r   r   r   Ú<module>   s   ÿ