tulpa-prompter 0.1.0 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -2
- data/README.md +20 -16
- data/lib/{prompter.rb → tulpa-prompter.rb} +3 -2
- data/lib/tulpa_prompter/version.rb +5 -0
- data/sig/prompter.rbs +1 -1
- metadata +12 -12
- data/lib/prompter/version.rb +0 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 60722d5f03571bd1d01dab440f16e903127cc2548615aa88a184204ff680f40c
|
4
|
+
data.tar.gz: 433e3440317d8ea32987e591150bce1b03019128581d3ed69ef298240084f9d1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f735c4fa0ac6b95487af971f6d5b147a83575e527447d68328fe6e289d7e360f1c3181d9a93f70bdc9d504ea5161bbfbc3b6c54a4a62afac2a1cff84b90c99a3
|
7
|
+
data.tar.gz: 3cd9110f3e1a659bb2e7a18db9926d181f75d3f5cbd8bcf968cf6fab00b66562c456bc7f416a05320740ab64908c6ba609892f5b9028656f41446629b5a25d23
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
prompter (0.1.
|
4
|
+
tulpa-prompter (0.1.1)
|
5
5
|
|
6
6
|
GEM
|
7
7
|
remote: https://rubygems.org/
|
@@ -36,9 +36,9 @@ PLATFORMS
|
|
36
36
|
|
37
37
|
DEPENDENCIES
|
38
38
|
minitest (~> 5.0)
|
39
|
-
prompter!
|
40
39
|
rake (~> 13.0)
|
41
40
|
rubocop (~> 1.21)
|
41
|
+
tulpa-prompter!
|
42
42
|
|
43
43
|
BUNDLED WITH
|
44
44
|
2.3.7
|
data/README.md
CHANGED
@@ -1,15 +1,13 @@
|
|
1
|
-
#
|
1
|
+
# TulpaPrompter
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
TODO: Delete this and the text above, and describe your gem
|
3
|
+
This is just a simple Ruby gem implementing the functionality of [Animation Prompter](https://dreamingtulpa.com/tools/prompter) on my website.
|
6
4
|
|
7
5
|
## Installation
|
8
6
|
|
9
7
|
Add this line to your application's Gemfile:
|
10
8
|
|
11
9
|
```ruby
|
12
|
-
gem 'prompter'
|
10
|
+
gem 'tulpa-prompter'
|
13
11
|
```
|
14
12
|
|
15
13
|
And then execute:
|
@@ -18,22 +16,28 @@ And then execute:
|
|
18
16
|
|
19
17
|
Or install it yourself as:
|
20
18
|
|
21
|
-
$ gem install prompter
|
19
|
+
$ gem install tulpa-prompter
|
22
20
|
|
23
21
|
## Usage
|
24
22
|
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
23
|
+
```
|
24
|
+
json_string = TulpaPrompter.call(
|
25
|
+
lines: ["prompt #1", "prompt #2", "prompt #3"],
|
26
|
+
prefix: "portrait of ",
|
27
|
+
suffix: " by greg rutkowski",
|
28
|
+
interval: 15,
|
29
|
+
shuffle: false
|
30
|
+
)
|
31
|
+
```
|
30
32
|
|
31
|
-
|
33
|
+
Or you can use it as a CLI:
|
32
34
|
|
33
|
-
|
35
|
+
```
|
36
|
+
bin/tulpa_prompter path/to/prompts.txt --prefix "portrait of " --suffix " by greg rutkowski" --interval 15 --shuffle
|
37
|
+
```
|
34
38
|
|
35
|
-
|
39
|
+
This copies the output to the clipboard on macOS. Doesn't work for other platforms yet. If you want it, submit a PR.
|
36
40
|
|
37
|
-
##
|
41
|
+
## Development
|
38
42
|
|
39
|
-
|
43
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
@@ -1,10 +1,11 @@
|
|
1
|
-
require_relative "
|
1
|
+
require_relative "tulpa_prompter/version"
|
2
2
|
|
3
|
-
module
|
3
|
+
module TulpaPrompter
|
4
4
|
class Error < StandardError; end
|
5
5
|
|
6
6
|
def self.call(options)
|
7
7
|
options[:interval] ||= 15
|
8
|
+
options[:interval] = options[:interval].to_i
|
8
9
|
options[:lines].shuffle! if options[:shuffle]
|
9
10
|
|
10
11
|
animation_prompts = "animation_prompts = {\n"
|
data/sig/prompter.rbs
CHANGED
metadata
CHANGED
@@ -1,16 +1,16 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tulpa-prompter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dreaming Tulpa
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
11
|
date: 2022-10-17 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
|
-
description:
|
13
|
+
description:
|
14
14
|
email:
|
15
15
|
- hey@dreamingtulpa.com
|
16
16
|
executables: []
|
@@ -24,16 +24,16 @@ files:
|
|
24
24
|
- Gemfile.lock
|
25
25
|
- README.md
|
26
26
|
- Rakefile
|
27
|
-
- lib/prompter.rb
|
28
|
-
- lib/
|
27
|
+
- lib/tulpa-prompter.rb
|
28
|
+
- lib/tulpa_prompter/version.rb
|
29
29
|
- sig/prompter.rbs
|
30
|
-
homepage: https://github.com/dreamingtulpa/
|
30
|
+
homepage: https://github.com/dreamingtulpa/tulpa_prompter
|
31
31
|
licenses: []
|
32
32
|
metadata:
|
33
|
-
homepage_uri: https://github.com/dreamingtulpa/
|
34
|
-
source_code_uri: https://github.com/dreamingtulpa/
|
35
|
-
changelog_uri: https://github.com/dreamingtulpa/
|
36
|
-
post_install_message:
|
33
|
+
homepage_uri: https://github.com/dreamingtulpa/tulpa_prompter
|
34
|
+
source_code_uri: https://github.com/dreamingtulpa/tulpa_prompter
|
35
|
+
changelog_uri: https://github.com/dreamingtulpa/tulpa_prompter/blob/master/CHANGELOG.md
|
36
|
+
post_install_message:
|
37
37
|
rdoc_options: []
|
38
38
|
require_paths:
|
39
39
|
- lib
|
@@ -48,8 +48,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
48
48
|
- !ruby/object:Gem::Version
|
49
49
|
version: '0'
|
50
50
|
requirements: []
|
51
|
-
rubygems_version: 3.
|
52
|
-
signing_key:
|
51
|
+
rubygems_version: 3.3.7
|
52
|
+
signing_key:
|
53
53
|
specification_version: 4
|
54
54
|
summary: CLI tool to build animation prompts for AI notebooks like Deforum Stable
|
55
55
|
Diffusion
|