Skip to content

Commit

Permalink
docs: Updated text copies
Browse files Browse the repository at this point in the history
  • Loading branch information
BrutalCoding committed Sep 17, 2023
1 parent 1b0d9ad commit aebc6d4
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,10 @@ Here's a list of things I have done so far and things I'm working on.
Anything that's checked is implemented.
Otherwise, it's on my list of things-to-tinker-around-with but does not guarantee it will become a feature.

- [ ] Ask AI a single question.
- [x] Ask AI a single question.
(Example: "What is the meaning of life?")
- [x] Give AI a single instruction.
(Example: "Write a Flutter widget with a button that says 'Hello World'")
- [ ] Ask AI generate an image based on a short description.
(Example: "A cat with a hat")
- [ ] On-going chat conversation with AI.
Expand Down
5 changes: 3 additions & 2 deletions shady_ai_flutter/lib/data/prompt_template.dart
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ class PromptTemplate with _$PromptTemplate {
return PromptTemplate(
label: 'Story',
promptTemplate: '{prompt}',
prompt: "One day, a boy named Luca went for a walk.",
prompt:
"One day, there was a boy named Luca who went for a walk. He walked past by a dark cave where he got confronted by a big brown scary bear. Oh oh, 2 big furry ears and 1 big shiny nose. Luca was so scared.",
postProcess: (output) => output,
);
}
Expand Down Expand Up @@ -204,7 +205,7 @@ class PromptTemplate with _$PromptTemplate {
return PromptTemplate(
label: 'Chat',
promptTemplate: "USER: {prompt}\nASSISTANT:",
prompt: 'Write a story about llamas',
prompt: 'Write a story about llamas.',
postProcess: (output) {
// Substring from "ASSISTANT:" until period (.):
// We need to find the index of : after ASSISTANT.
Expand Down
4 changes: 2 additions & 2 deletions shady_ai_flutter/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -410,10 +410,10 @@ class QuickStartPage extends HookConsumerWidget {
Step(
isActive: stepperIndex.value == 0,
title: Text(
'Select a template',
'Select a prompt template',
),
subtitle: Text(
'Usually, AI models expect a specific format for the prompt. You can select a template here to make sure that the AI understands your prompt.',
'Usually, AI models expect a specific format for the prompt. This is known as a prompt template. You can select a prompt template from the dropdown below.',
),
content: Align(
alignment: Alignment.centerLeft,
Expand Down

0 comments on commit aebc6d4

Please sign in to comment.