Spaces:
Runtime error
Runtime error
测试脚本
Browse files- .gitignore +1 -0
- crazy_functions/crazy_functions_test.py +61 -1
.gitignore
CHANGED
|
@@ -144,3 +144,4 @@ other_llms
|
|
| 144 |
cradle*
|
| 145 |
debug*
|
| 146 |
private*
|
|
|
|
|
|
| 144 |
cradle*
|
| 145 |
debug*
|
| 146 |
private*
|
| 147 |
+
crazy_functions/test_project/pdf_and_word
|
crazy_functions/crazy_functions_test.py
CHANGED
|
@@ -31,12 +31,72 @@ system_prompt = "Serve me as a writing and programming assistant."
|
|
| 31 |
web_port = 1024
|
| 32 |
|
| 33 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 34 |
def test_总结word文档():
|
| 35 |
from crazy_functions.总结word文档 import 总结word文档
|
| 36 |
-
txt = "
|
| 37 |
for _ in 总结word文档(txt, llm_kwargs, plugin_kwargs, chatbot, history, system_prompt, web_port):
|
| 38 |
pass
|
| 39 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 40 |
test_总结word文档()
|
| 41 |
|
| 42 |
input("程序完成,回车退出。")
|
|
|
|
| 31 |
web_port = 1024
|
| 32 |
|
| 33 |
|
| 34 |
+
def test_解析一个Python项目():
|
| 35 |
+
from crazy_functions.解析项目源代码 import 解析一个Python项目
|
| 36 |
+
txt = "crazy_functions/test_project/python/dqn"
|
| 37 |
+
for _ in 解析一个Python项目(txt, llm_kwargs, plugin_kwargs, chatbot, history, system_prompt, web_port):
|
| 38 |
+
pass
|
| 39 |
+
|
| 40 |
+
def test_解析一个Python项目():
|
| 41 |
+
from crazy_functions.解析项目源代码 import 解析一个Python项目
|
| 42 |
+
txt = "crazy_functions/test_project/python/dqn"
|
| 43 |
+
for _ in 解析一个Python项目(txt, llm_kwargs, plugin_kwargs, chatbot, history, system_prompt, web_port):
|
| 44 |
+
pass
|
| 45 |
+
|
| 46 |
+
def test_Latex英文润色():
|
| 47 |
+
from crazy_functions.Latex全文润色 import Latex英文润色
|
| 48 |
+
txt = "crazy_functions/test_project/latex/attention"
|
| 49 |
+
for _ in Latex英文润色(txt, llm_kwargs, plugin_kwargs, chatbot, history, system_prompt, web_port):
|
| 50 |
+
pass
|
| 51 |
+
|
| 52 |
+
def test_Latex英文润色():
|
| 53 |
+
from crazy_functions.Latex全文润色 import Latex英文润色
|
| 54 |
+
txt = "crazy_functions/test_project/latex/attention"
|
| 55 |
+
for _ in Latex英文润色(txt, llm_kwargs, plugin_kwargs, chatbot, history, system_prompt, web_port):
|
| 56 |
+
pass
|
| 57 |
+
|
| 58 |
+
def test_Markdown中译英():
|
| 59 |
+
from crazy_functions.批量Markdown翻译 import Markdown中译英
|
| 60 |
+
txt = "README.md"
|
| 61 |
+
for _ in Markdown中译英(txt, llm_kwargs, plugin_kwargs, chatbot, history, system_prompt, web_port):
|
| 62 |
+
pass
|
| 63 |
+
|
| 64 |
+
def test_Markdown中译英():
|
| 65 |
+
from crazy_functions.批量Markdown翻译 import Markdown中译英
|
| 66 |
+
txt = "README.md"
|
| 67 |
+
for _ in Markdown中译英(txt, llm_kwargs, plugin_kwargs, chatbot, history, system_prompt, web_port):
|
| 68 |
+
pass
|
| 69 |
+
|
| 70 |
+
def test_Markdown中译英():
|
| 71 |
+
from crazy_functions.批量Markdown翻译 import Markdown中译英
|
| 72 |
+
txt = "README.md"
|
| 73 |
+
for _ in Markdown中译英(txt, llm_kwargs, plugin_kwargs, chatbot, history, system_prompt, web_port):
|
| 74 |
+
pass
|
| 75 |
+
|
| 76 |
+
def test_批量翻译PDF文档():
|
| 77 |
+
from crazy_functions.批量翻译PDF文档_多线程 import 批量翻译PDF文档
|
| 78 |
+
txt = "crazy_functions/test_project/pdf_and_word"
|
| 79 |
+
for _ in 批量翻译PDF文档(txt, llm_kwargs, plugin_kwargs, chatbot, history, system_prompt, web_port):
|
| 80 |
+
pass
|
| 81 |
+
|
| 82 |
+
def test_谷歌检索小助手():
|
| 83 |
+
from crazy_functions.谷歌检索小助手 import 谷歌检索小助手
|
| 84 |
+
txt = "https://scholar.google.com/scholar?hl=en&as_sdt=0%2C5&q=auto+reinforcement+learning&btnG="
|
| 85 |
+
for _ in 谷歌检索小助手(txt, llm_kwargs, plugin_kwargs, chatbot, history, system_prompt, web_port):
|
| 86 |
+
pass
|
| 87 |
+
|
| 88 |
def test_总结word文档():
|
| 89 |
from crazy_functions.总结word文档 import 总结word文档
|
| 90 |
+
txt = "crazy_functions/test_project/pdf_and_word"
|
| 91 |
for _ in 总结word文档(txt, llm_kwargs, plugin_kwargs, chatbot, history, system_prompt, web_port):
|
| 92 |
pass
|
| 93 |
|
| 94 |
+
def test_下载arxiv论文并翻译摘要():
|
| 95 |
+
from crazy_functions.下载arxiv论文翻译摘要 import 下载arxiv论文并翻译摘要
|
| 96 |
+
txt = "1812.10695"
|
| 97 |
+
for _ in 下载arxiv论文并翻译摘要(txt, llm_kwargs, plugin_kwargs, chatbot, history, system_prompt, web_port):
|
| 98 |
+
pass
|
| 99 |
+
|
| 100 |
test_总结word文档()
|
| 101 |
|
| 102 |
input("程序完成,回车退出。")
|