You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+17Lines changed: 17 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -120,6 +120,21 @@ gems list
120
120
gems imagen -t "Hi, can you create a 3d rendered image of a pig with wings and a top hat flying over a happy futuristic scifi city with lots of greenery?"
121
121
```
122
122
123
+
### Generate a Video
124
+
125
+
```sh
126
+
gems vidgen -t "Yo, generate a humble bumble golden retriever puppy running through a flower field."
127
+
```
128
+
129
+
### Text to speech
130
+
131
+
```sh
132
+
gems tts -t "Yo, Say 'Hello' with a humble bumble voice!."
Copy file name to clipboardExpand all lines: src/cli.rs
+33Lines changed: 33 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -72,12 +72,24 @@ EXAMPLES:
72
72
Batch embed contents:
73
73
gems -m 'embedding-001' batch -t "Write a story about a magic backpack.","Generate a poem about nature."
74
74
75
+
Generate an Image:
76
+
gems imagen -t "Yo, create a 3d rendered image of a cat with wings."
77
+
78
+
Generate a Video:
79
+
gems vidgen -t "Yo, generate a humble bumble golden retriever puppy running through a flower field."
80
+
81
+
Text to speech:
82
+
gems tts -t "Yo, Say 'Hello' with a humble bumble voice!."
83
+
75
84
Get model info:
76
85
gems info
77
86
78
87
List models:
79
88
gems list
80
89
90
+
TUI mode:
91
+
gems
92
+
81
93
For more information, visit: github.com/kevin-rs/gems
82
94
"#
83
95
)]
@@ -104,6 +116,8 @@ pub enum Command {
104
116
Info(Info),
105
117
List(List),
106
118
Imagen(Imagen),
119
+
Vidgen(Vidgen),
120
+
Tts(Tts),
107
121
}
108
122
109
123
#[cfg(feature = "cli")]
@@ -172,3 +186,22 @@ pub struct Imagen {
172
186
#[arg(short, long, default_value_t = String::from("Hi, step bro... I need help generating a happy, humble, bumble Rustacean. he's stuck in the shower and won't compile."))]
173
187
pubtext:String,
174
188
}
189
+
190
+
#[cfg(feature = "cli")]
191
+
#[derive(Args,Debug,Clone)]
192
+
pubstructVidgen{
193
+
/// The text to generate video from.
194
+
#[arg(short, long, default_value_t = String::from("A humble bumble golden retriever puppy running through a flower field"))]
195
+
pubtext:String,
196
+
}
197
+
198
+
#[cfg(feature = "cli")]
199
+
#[derive(Args,Debug,Clone)]
200
+
pubstructTts{
201
+
/// The prompt.
202
+
#[arg(short, long, default_value_t = String::from("Say cheerfully: Have a wonderful day!"))]
0 commit comments