|
1 | 1 | <div class="row"> |
2 | | - <div class="col s12 m3"> |
3 | | - <%= image_tag @character.random_image_including_private %> |
| 2 | + <div class="col s12 m4"> |
| 3 | + <%= image_tag @character.random_image_including_private, style: "width: 100%" %> |
4 | 4 |
|
5 | | - <div> |
6 | | - <%= link_to "Back to #{@character.name}", @character %> |
| 5 | + <div class="card"> |
| 6 | + <div class="card-content"> |
| 7 | + <div class="card-title"> |
| 8 | + <strong>Talk to <%= @character.name %></strong> |
| 9 | + </div> |
| 10 | + <p> |
| 11 | + You can now export your Notebook.ai characters to the open-source project OpenCharacters |
| 12 | + and talk to them in real-time! This is a great way to get to know your characters a little |
| 13 | + better or to roleplay with them. |
| 14 | + </p> |
| 15 | + </div> |
7 | 16 | </div> |
8 | | - </div> |
9 | | - <div class="col s12 m9"> |
10 | | - <h1 style="font-size: 1.4em"> |
11 | | - <strong>Talk to <%= @character.name %></strong> |
12 | | - </h1> |
13 | | - <p> |
14 | | - You can now export your Notebook.ai characters to the open-source project OpenCharacters |
15 | | - and talk to them in real-time! This is a great way to get to know your characters a little |
16 | | - better or to roleplay with them. |
17 | | - </p> |
18 | | - <p> |
19 | | - The fields below will be shared with OpenCharacters to create a conversational persona of |
| 17 | + |
| 18 | + <p style="font-size: 0.9em"> |
| 19 | + The fields will be used to create a conversational AI persona of |
20 | 20 | your character. You can edit these fields before exporting if you want to change how your |
21 | 21 | character talks. If your character is public, you can also share this page with others |
22 | 22 | to let them talk to your character! |
23 | 23 | </p> |
24 | | - <br /> |
25 | | - |
| 24 | + <div> |
| 25 | + <%= link_to "Back to notebook page", @character %> |
| 26 | + </div> |
| 27 | + </div> |
| 28 | + <div class="col s12 m8"> |
26 | 29 | <%= form_tag export_character_path(@character.id), method: :post do |f| %> |
27 | 30 |
|
28 | 31 | <%= hidden_field_tag "name", @character.name %> |
29 | 32 | <%= hidden_field_tag "avatar", @character.random_image_including_private %> |
30 | 33 | <%# TODO background image/music/etc? %> |
31 | 34 |
|
32 | 35 | <div class="card-panel"> |
33 | | - <p class="center"> |
34 | | - <strong>Persona export for <%= @character.name %></strong> |
35 | | - <% if user_signed_in? && @character.user_id == current_user.id %> |
36 | | - <br /> |
37 | | - <em>(editable because you created <%= @character.name %>)</em> |
38 | | - <% end %> |
39 | | - </p> |
40 | | - <br /><br /> |
| 36 | + <p class="center"> |
| 37 | + <strong>Persona export for <%= @character.name %></strong> |
| 38 | + <% if user_signed_in? && @character.user_id == current_user.id %> |
| 39 | + <br /> |
| 40 | + <em>(editable because you created <%= @character.name %>)</em> |
| 41 | + <% end %> |
| 42 | + </p> |
| 43 | + <br /><br /> |
41 | 44 |
|
42 | | - <div class="input-field"> |
43 | | - <%= text_area_tag 'scenario', nil, disabled: false, style: 'min-height: 100px', placeholder: "Is there a specific scenario/context you want to have this conversation in?", class: 'materialize-textarea' %> |
44 | | - <label for="scenario">Optional: Scenario</label> |
45 | | - </div> |
| 45 | + <div class="input-field"> |
| 46 | + <%= text_area_tag 'scenario', nil, disabled: false, style: 'min-height: 100px', placeholder: "Is there a specific scenario/context you want to have this conversation in?", class: 'materialize-textarea' %> |
| 47 | + <label for="scenario">Optional: Scenario</label> |
| 48 | + </div> |
46 | 49 |
|
47 | | - <div class="input-field"> |
48 | | - <%= text_area_tag 'char_greeting', @first_greeting, disabled: false, placeholder: "This will be the first thing your character says to you. It can be a simple greeting, or you can use it to set a specific topic, tone, or speaking style.", class: 'materialize-textarea' %> |
49 | | - <label for="char_greeting">First greeting from <%= @character.name %></label> |
50 | | - </div> |
| 50 | + <div class="input-field"> |
| 51 | + <%= text_area_tag 'char_greeting', @first_greeting, disabled: false, placeholder: "This will be the first thing your character says to you. It can be a simple greeting, or you can use it to set a specific topic, tone, or speaking style.", class: 'materialize-textarea' %> |
| 52 | + <label for="char_greeting">First greeting from <%= @character.name %></label> |
| 53 | + </div> |
51 | 54 |
|
52 | | - <div class="input-field"> |
53 | | - <%= text_area_tag 'personality', @personality, disabled: false, class: 'materialize-textarea' %> |
54 | | - <label for="personality">Personality</label> |
55 | | - </div> |
| 55 | + <div class="input-field"> |
| 56 | + <%= text_area_tag 'personality', @personality, disabled: false, class: 'materialize-textarea' %> |
| 57 | + <label for="personality">Brief personality</label> |
| 58 | + </div> |
56 | 59 |
|
57 | | - <div class="input-field"> |
58 | | - <%= text_area_tag 'description', @description, disabled: false, class: 'materialize-textarea' %> |
59 | | - <label for="description">Description</label> |
60 | | - </div> |
| 60 | + <div class="input-field"> |
| 61 | + <%= text_area_tag 'description', @description, disabled: false, class: 'materialize-textarea' %> |
| 62 | + <label for="description">In-depth personality</label> |
| 63 | + </div> |
61 | 64 |
|
62 | | - <div class="input-field"> |
63 | | - <%= text_area_tag 'example_dialogue', nil, disabled: false, style: 'min-height: 100px', placeholder: "If you have any dialogue examples, quotes, or other phrases your character says, you can use this field to include them and adjust their speaking style closer to the examples. Write as little or as much as you'd like!", class: 'materialize-textarea' %> |
64 | | - <label for="example_dialogue">Optional: More dialogue examples</label> |
65 | | - </div> |
| 65 | + <div class="input-field"> |
| 66 | + <%= text_area_tag 'example_dialogue', nil, disabled: false, style: 'min-height: 100px', placeholder: "If you have any dialogue examples, quotes, or other phrases your character says, you can use this field to include them and adjust their speaking style closer to the examples. Write as little or as much as you'd like!", class: 'materialize-textarea' %> |
| 67 | + <label for="example_dialogue">Optional: More dialogue examples</label> |
| 68 | + </div> |
66 | 69 | </div> |
67 | 70 |
|
68 | 71 | <div class="card-panel"> |
69 | 72 | <div class="center"> |
70 | | - <strong>Note: OpenAI key required by OpenCharacters</strong> |
| 73 | + <strong>Note: An OpenAI API key is required by OpenCharacters</strong> |
71 | 74 | </div> |
72 | 75 |
|
73 | 76 | <p> |
74 | | - OpenCharacters uses this persona data with OpenAI's GPT models |
75 | | - in an app that runs entirely in your browser, rather than being hosted or stored on any server. |
76 | | - This means that you will need a valid OpenAI key to use this feature. |
| 77 | + OpenCharacters uses this persona data with OpenAI's GPT models |
| 78 | + in a web app that runs entirely in your browser, rather than being hosted or stored on any server. |
| 79 | + This means that you will need a valid OpenAI key to use this feature. |
77 | 80 | </p> |
78 | 81 | </div> |
79 | 82 |
|
80 | 83 | <br /> |
81 | 84 | <div class="center"> |
82 | 85 | <%= submit_tag "Chat with #{@character.name}", class: 'hoverable btn blue white-text' %> |
83 | | - <span class="grey-text text-darken-1" style="margin-left: 1rem">using OpenCharacters</span> |
| 86 | + <span class="grey-text text-darken-1" style="margin-left: 0.5rem">using OpenCharacters</span> |
84 | 87 | </div> |
85 | 88 |
|
86 | 89 | <% 10.times do %><br /><% end %> |
|
0 commit comments