File tree Expand file tree Collapse file tree 4 files changed +152
-218
lines changed Expand file tree Collapse file tree 4 files changed +152
-218
lines changed Original file line number Diff line number Diff line change 1
1
.DS_Store
2
- .ipynb_checkpoints
2
+ .ipynb_checkpoints
3
+ data /podcast_clip_ * .mp3
4
+ data /podcast_long. *
5
+ data /paddlespeech * .wav
6
+ data /tts. *
7
+ data /transcripts
Original file line number Diff line number Diff line change 1
1
{
2
2
"cells" : [
3
+ {
4
+ "cell_type" : " markdown" ,
5
+ "metadata" : {},
6
+ "source" : [
7
+ " ## ChatGPT写的功能代码"
8
+ ]
9
+ },
3
10
{
4
11
"cell_type" : " code" ,
5
12
"execution_count" : 5 ,
34
41
"cell_type" : " markdown" ,
35
42
"metadata" : {},
36
43
"source" : [
37
- " ```\n " ,
38
- " conda install pytest\n " ,
39
- " ```"
44
+ " ## ChatGPT写的简单的单元测试"
40
45
]
41
46
},
42
47
{
56
61
" assert format_time(3661) == \" 1h1min1s\" "
57
62
]
58
63
},
64
+ {
65
+ "attachments" : {},
66
+ "cell_type" : " markdown" ,
67
+ "metadata" : {},
68
+ "source" : [
69
+ " ## 第一步,解释功能代码"
70
+ ]
71
+ },
59
72
{
60
73
"cell_type" : " code" ,
61
74
"execution_count" : 52 ,
115
128
" print(code_explaination)"
116
129
]
117
130
},
131
+ {
132
+ "attachments" : {},
133
+ "cell_type" : " markdown" ,
134
+ "metadata" : {},
135
+ "source" : [
136
+ " ## 第二步,设计测试用例"
137
+ ]
138
+ },
118
139
{
119
140
"cell_type" : " code" ,
120
141
"execution_count" : 53 ,
164
185
" print(test_plan)"
165
186
]
166
187
},
188
+ {
189
+ "attachments" : {},
190
+ "cell_type" : " markdown" ,
191
+ "metadata" : {},
192
+ "source" : [
193
+ " ## 第二步补充,补充更多用例"
194
+ ]
195
+ },
167
196
{
168
197
"cell_type" : " code" ,
169
198
"execution_count" : 55 ,
203
232
" print(more_test_plan)\n "
204
233
]
205
234
},
235
+ {
236
+ "attachments" : {},
237
+ "cell_type" : " markdown" ,
238
+ "metadata" : {},
239
+ "source" : [
240
+ " ## 第三步,撰写单元测试"
241
+ ]
242
+ },
206
243
{
207
244
"cell_type" : " code" ,
208
245
"execution_count" : 56 ,
262
299
" print(unit_test_response)"
263
300
]
264
301
},
302
+ {
303
+ "attachments" : {},
304
+ "cell_type" : " markdown" ,
305
+ "metadata" : {},
306
+ "source" : [
307
+ " ## 检查代码语法合法"
308
+ ]
309
+ },
265
310
{
266
311
"cell_type" : " code" ,
267
312
"execution_count" : 57 ,
337
382
" print(code_output)\n "
338
383
]
339
384
},
385
+ {
386
+ "attachments" : {},
387
+ "cell_type" : " markdown" ,
388
+ "metadata" : {},
389
+ "source" : [
390
+ " ## 实验Bad Case"
391
+ ]
392
+ },
340
393
{
341
394
"cell_type" : " code" ,
342
395
"execution_count" : 62 ,
Original file line number Diff line number Diff line change 1
1
{
2
2
"cells" : [
3
+ {
4
+ "attachments" : {},
5
+ "cell_type" : " markdown" ,
6
+ "metadata" : {},
7
+ "source" : [
8
+ " ## 多次调用完成中译英,英文文答,英译中"
9
+ ]
10
+ },
3
11
{
4
12
"cell_type" : " code" ,
5
13
"execution_count" : 1 ,
58
66
" print(answer)\n "
59
67
]
60
68
},
69
+ {
70
+ "attachments" : {},
71
+ "cell_type" : " markdown" ,
72
+ "metadata" : {},
73
+ "source" : [
74
+ " ## 使用Langchain简化实现"
75
+ ]
76
+ },
61
77
{
62
78
"cell_type" : " code" ,
63
79
"execution_count" : 2 ,
97
113
" print(answer)"
98
114
]
99
115
},
116
+ {
117
+ "attachments" : {},
118
+ "cell_type" : " markdown" ,
119
+ "metadata" : {},
120
+ "source" : [
121
+ " ## 多步骤引入不同输入参数"
122
+ ]
123
+ },
100
124
{
101
125
"cell_type" : " code" ,
102
126
"execution_count" : 3 ,
You can’t perform that action at this time.
0 commit comments