测试脚本
This commit is contained in:
		
							parent
							
								
									05c74e66e7
								
							
						
					
					
						commit
						e2a62ec409
					
				
							
								
								
									
										1
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										1
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							@ -144,3 +144,4 @@ other_llms
 | 
			
		||||
cradle*
 | 
			
		||||
debug*
 | 
			
		||||
private*
 | 
			
		||||
crazy_functions/test_project/pdf_and_word
 | 
			
		||||
 | 
			
		||||
@ -31,12 +31,72 @@ system_prompt = "Serve me as a writing and programming assistant."
 | 
			
		||||
web_port = 1024
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
def test_解析一个Python项目():
 | 
			
		||||
    from crazy_functions.解析项目源代码 import 解析一个Python项目
 | 
			
		||||
    txt = "crazy_functions/test_project/python/dqn"
 | 
			
		||||
    for _ in 解析一个Python项目(txt, llm_kwargs, plugin_kwargs, chatbot, history, system_prompt, web_port):
 | 
			
		||||
        pass
 | 
			
		||||
 | 
			
		||||
def test_解析一个Python项目():
 | 
			
		||||
    from crazy_functions.解析项目源代码 import 解析一个Python项目
 | 
			
		||||
    txt = "crazy_functions/test_project/python/dqn"
 | 
			
		||||
    for _ in 解析一个Python项目(txt, llm_kwargs, plugin_kwargs, chatbot, history, system_prompt, web_port):
 | 
			
		||||
        pass
 | 
			
		||||
 | 
			
		||||
def test_Latex英文润色():
 | 
			
		||||
    from crazy_functions.Latex全文润色 import Latex英文润色
 | 
			
		||||
    txt = "crazy_functions/test_project/latex/attention"
 | 
			
		||||
    for _ in Latex英文润色(txt, llm_kwargs, plugin_kwargs, chatbot, history, system_prompt, web_port):
 | 
			
		||||
        pass
 | 
			
		||||
 | 
			
		||||
def test_Latex英文润色():
 | 
			
		||||
    from crazy_functions.Latex全文润色 import Latex英文润色
 | 
			
		||||
    txt = "crazy_functions/test_project/latex/attention"
 | 
			
		||||
    for _ in Latex英文润色(txt, llm_kwargs, plugin_kwargs, chatbot, history, system_prompt, web_port):
 | 
			
		||||
        pass
 | 
			
		||||
 | 
			
		||||
def test_Markdown中译英():
 | 
			
		||||
    from crazy_functions.批量Markdown翻译 import Markdown中译英
 | 
			
		||||
    txt = "README.md"
 | 
			
		||||
    for _ in Markdown中译英(txt, llm_kwargs, plugin_kwargs, chatbot, history, system_prompt, web_port):
 | 
			
		||||
        pass
 | 
			
		||||
 | 
			
		||||
def test_Markdown中译英():
 | 
			
		||||
    from crazy_functions.批量Markdown翻译 import Markdown中译英
 | 
			
		||||
    txt = "README.md"
 | 
			
		||||
    for _ in Markdown中译英(txt, llm_kwargs, plugin_kwargs, chatbot, history, system_prompt, web_port):
 | 
			
		||||
        pass
 | 
			
		||||
 | 
			
		||||
def test_Markdown中译英():
 | 
			
		||||
    from crazy_functions.批量Markdown翻译 import Markdown中译英
 | 
			
		||||
    txt = "README.md"
 | 
			
		||||
    for _ in Markdown中译英(txt, llm_kwargs, plugin_kwargs, chatbot, history, system_prompt, web_port):
 | 
			
		||||
        pass
 | 
			
		||||
 | 
			
		||||
def test_批量翻译PDF文档():
 | 
			
		||||
    from crazy_functions.批量翻译PDF文档_多线程 import 批量翻译PDF文档
 | 
			
		||||
    txt = "crazy_functions/test_project/pdf_and_word"
 | 
			
		||||
    for _ in 批量翻译PDF文档(txt, llm_kwargs, plugin_kwargs, chatbot, history, system_prompt, web_port):
 | 
			
		||||
        pass
 | 
			
		||||
 | 
			
		||||
def test_谷歌检索小助手():
 | 
			
		||||
    from crazy_functions.谷歌检索小助手 import 谷歌检索小助手
 | 
			
		||||
    txt = "https://scholar.google.com/scholar?hl=en&as_sdt=0%2C5&q=auto+reinforcement+learning&btnG="
 | 
			
		||||
    for _ in 谷歌检索小助手(txt, llm_kwargs, plugin_kwargs, chatbot, history, system_prompt, web_port):
 | 
			
		||||
        pass
 | 
			
		||||
 | 
			
		||||
def test_总结word文档():
 | 
			
		||||
    from crazy_functions.总结word文档 import 总结word文档
 | 
			
		||||
    txt = "F:/AMD"
 | 
			
		||||
    txt = "crazy_functions/test_project/pdf_and_word"
 | 
			
		||||
    for _ in 总结word文档(txt, llm_kwargs, plugin_kwargs, chatbot, history, system_prompt, web_port):
 | 
			
		||||
        pass
 | 
			
		||||
 | 
			
		||||
def test_下载arxiv论文并翻译摘要():
 | 
			
		||||
    from crazy_functions.下载arxiv论文翻译摘要 import 下载arxiv论文并翻译摘要
 | 
			
		||||
    txt = "1812.10695"
 | 
			
		||||
    for _ in 下载arxiv论文并翻译摘要(txt, llm_kwargs, plugin_kwargs, chatbot, history, system_prompt, web_port):
 | 
			
		||||
        pass
 | 
			
		||||
 | 
			
		||||
test_总结word文档()
 | 
			
		||||
 | 
			
		||||
input("程序完成,回车退出。")
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user