Spaces:
Paused
Paused
Your Name
commited on
Commit
•
57b8ae3
1
Parent(s):
a3db8d1
测试样例
Browse files
crazy_functions/crazy_functions_test.py
CHANGED
@@ -34,70 +34,52 @@ web_port = 1024
|
|
34 |
def test_解析一个Python项目():
|
35 |
from crazy_functions.解析项目源代码 import 解析一个Python项目
|
36 |
txt = "crazy_functions/test_project/python/dqn"
|
37 |
-
for
|
38 |
-
|
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
|
50 |
-
|
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
|
62 |
-
|
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
|
80 |
-
|
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
|
86 |
-
|
87 |
|
88 |
def test_总结word文档():
|
89 |
from crazy_functions.总结word文档 import 总结word文档
|
90 |
txt = "crazy_functions/test_project/pdf_and_word"
|
91 |
-
for
|
92 |
-
|
93 |
|
94 |
def test_下载arxiv论文并翻译摘要():
|
95 |
from crazy_functions.下载arxiv论文翻译摘要 import 下载arxiv论文并翻译摘要
|
96 |
txt = "1812.10695"
|
97 |
-
for
|
98 |
-
|
99 |
-
|
|
|
|
|
|
|
|
|
|
|
100 |
test_总结word文档()
|
|
|
101 |
|
102 |
input("程序完成,回车退出。")
|
103 |
print("退出。")
|
|
|
34 |
def test_解析一个Python项目():
|
35 |
from crazy_functions.解析项目源代码 import 解析一个Python项目
|
36 |
txt = "crazy_functions/test_project/python/dqn"
|
37 |
+
for cookies, cb, hist, msg in 解析一个Python项目(txt, llm_kwargs, plugin_kwargs, chatbot, history, system_prompt, web_port):
|
38 |
+
print(cb)
|
|
|
|
|
|
|
|
|
|
|
|
|
39 |
|
40 |
def test_Latex英文润色():
|
41 |
from crazy_functions.Latex全文润色 import Latex英文润色
|
42 |
txt = "crazy_functions/test_project/latex/attention"
|
43 |
+
for cookies, cb, hist, msg in Latex英文润色(txt, llm_kwargs, plugin_kwargs, chatbot, history, system_prompt, web_port):
|
44 |
+
print(cb)
|
|
|
|
|
|
|
|
|
|
|
|
|
45 |
|
46 |
def test_Markdown中译英():
|
47 |
from crazy_functions.批量Markdown翻译 import Markdown中译英
|
48 |
txt = "README.md"
|
49 |
+
for cookies, cb, hist, msg in Markdown中译英(txt, llm_kwargs, plugin_kwargs, chatbot, history, system_prompt, web_port):
|
50 |
+
print(cb)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
51 |
|
52 |
def test_批量翻译PDF文档():
|
53 |
from crazy_functions.批量翻译PDF文档_多线程 import 批量翻译PDF文档
|
54 |
txt = "crazy_functions/test_project/pdf_and_word"
|
55 |
+
for cookies, cb, hist, msg in 批量翻译PDF文档(txt, llm_kwargs, plugin_kwargs, chatbot, history, system_prompt, web_port):
|
56 |
+
print(cb)
|
57 |
|
58 |
def test_谷歌检索小助手():
|
59 |
from crazy_functions.谷歌检索小助手 import 谷歌检索小助手
|
60 |
txt = "https://scholar.google.com/scholar?hl=en&as_sdt=0%2C5&q=auto+reinforcement+learning&btnG="
|
61 |
+
for cookies, cb, hist, msg in 谷歌检索小助手(txt, llm_kwargs, plugin_kwargs, chatbot, history, system_prompt, web_port):
|
62 |
+
print(cb)
|
63 |
|
64 |
def test_总结word文档():
|
65 |
from crazy_functions.总结word文档 import 总结word文档
|
66 |
txt = "crazy_functions/test_project/pdf_and_word"
|
67 |
+
for cookies, cb, hist, msg in 总结word文档(txt, llm_kwargs, plugin_kwargs, chatbot, history, system_prompt, web_port):
|
68 |
+
print(cb)
|
69 |
|
70 |
def test_下载arxiv论文并翻译摘要():
|
71 |
from crazy_functions.下载arxiv论文翻译摘要 import 下载arxiv论文并翻译摘要
|
72 |
txt = "1812.10695"
|
73 |
+
for cookies, cb, hist, msg in 下载arxiv论文并翻译摘要(txt, llm_kwargs, plugin_kwargs, chatbot, history, system_prompt, web_port):
|
74 |
+
print(cb)
|
75 |
+
|
76 |
+
test_解析一个Python项目()
|
77 |
+
test_Latex英文润色()
|
78 |
+
test_Markdown中译英()
|
79 |
+
test_批量翻译PDF文档()
|
80 |
+
test_谷歌检索小助手()
|
81 |
test_总结word文档()
|
82 |
+
test_下载arxiv论文并翻译摘要()
|
83 |
|
84 |
input("程序完成,回车退出。")
|
85 |
print("退出。")
|