Spaces:
				
			
			
	
			
			
					
		Running
		
	
	
	
			
			
	
	
	
	
		
		
					
		Running
		
	Merge pull request #46 from mambaHu/master
Browse files- toolbox.py +1 -1
    	
        toolbox.py
    CHANGED
    
    | @@ -49,7 +49,7 @@ def write_results_to_file(history, file_name=None): | |
| 49 | 
             
                if file_name is None:
         | 
| 50 | 
             
                    file_name = time.strftime("chatGPT分析报告%Y-%m-%d-%H-%M-%S", time.localtime()) + '.md'
         | 
| 51 | 
             
                os.makedirs('./gpt_log/', exist_ok=True)
         | 
| 52 | 
            -
                with open(f'./gpt_log/{file_name}', 'w') as f:
         | 
| 53 | 
             
                    f.write('# chatGPT 分析报告\n')
         | 
| 54 | 
             
                    for i, content in enumerate(history):
         | 
| 55 | 
             
                        if i%2==0: f.write('## ')
         | 
|  | |
| 49 | 
             
                if file_name is None:
         | 
| 50 | 
             
                    file_name = time.strftime("chatGPT分析报告%Y-%m-%d-%H-%M-%S", time.localtime()) + '.md'
         | 
| 51 | 
             
                os.makedirs('./gpt_log/', exist_ok=True)
         | 
| 52 | 
            +
                with open(f'./gpt_log/{file_name}', 'w', encoding = 'utf8') as f:
         | 
| 53 | 
             
                    f.write('# chatGPT 分析报告\n')
         | 
| 54 | 
             
                    for i, content in enumerate(history):
         | 
| 55 | 
             
                        if i%2==0: f.write('## ')
         |