rabbitcat commited on
Commit
d1c2775
·
verified ·
1 Parent(s): 1c4507c

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +27 -1
README.md CHANGED
@@ -6,9 +6,12 @@ language:
6
  library_name: transformers
7
  tags:
8
  - code
 
 
 
9
  ---
10
 
11
- Bash Copilot is an LLM to generate bash command line or script based on your input of natural language description.
12
  This model supports multiturn conversation, which means you can (1) implicitly refer to an formerly mentioned entity using pronoun or omitting it, (2) optimize or complete the target code step by step.
13
 
14
  Bash Copilot is a fine-tuned version of Yi-1.5-6B with 21k multiturn conversations of both Chinese and English that converts natural language to bash code.
@@ -35,5 +38,28 @@ Example 2:
35
  - **user**: instead of sleep, send "not ready" to 1.2.3.4:8888 via TCP
36
  - **assistant**: ```while [ $($count.sh) -ne 10 ]; do echo not ready > /dev/tcp/1.2.3.4/8888; sleep 1; done```
37
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
38
 
39
 
 
6
  library_name: transformers
7
  tags:
8
  - code
9
+ - bash
10
+ - nl2bash
11
+ - shell
12
  ---
13
 
14
+ Bash Copilot is an LLM to generate bash command line or script based on your input of natural language description (NL2Bash).
15
  This model supports multiturn conversation, which means you can (1) implicitly refer to an formerly mentioned entity using pronoun or omitting it, (2) optimize or complete the target code step by step.
16
 
17
  Bash Copilot is a fine-tuned version of Yi-1.5-6B with 21k multiturn conversations of both Chinese and English that converts natural language to bash code.
 
38
  - **user**: instead of sleep, send "not ready" to 1.2.3.4:8888 via TCP
39
  - **assistant**: ```while [ $($count.sh) -ne 10 ]; do echo not ready > /dev/tcp/1.2.3.4/8888; sleep 1; done```
40
 
41
+ Example 3:
42
+
43
+ - **user**: 文件夹/path/to/target下的文件个数
44
+ - **assistant**: ```ls /path/to/target | wc -l```
45
+ - **user**: 写入count.sh
46
+ - **assistant**:
47
+ ```
48
+ echo '#!/bin/bash
49
+ count=`ls | wc -l`
50
+ echo $count' > count.sh
51
+ ```
52
+ - **user**: 循环运行它,直到结为10退出循环
53
+ - **assistant**:
54
+ ```
55
+ while [ 1 ]
56
+ do
57
+ ./count.sh
58
+ if [ $? -eq 10 ];
59
+ then
60
+ break;
61
+ fi
62
+ done
63
+ ```
64
 
65