Kaynağa Gözat

Add a video, some prompt tweaks

master
The Dod 1 yıl önce
ebeveyn
işleme
869dbd15e4

+ 1
- 1
app.py Dosyayı Görüntüle

@@ -96,7 +96,7 @@ def home():
96 96
         prompt = ""
97 97
     if request.method=='POST' or is_initial:
98 98
         if is_initial:
99
-            session["messages"] += [{"role": "system", "content": "User has hit enter. You can begin."}]
99
+            session["messages"] += [{"role": "system", "content": "User wishes to begin. Remember to find out how they feel before offering a ceremony or other action."}]
100 100
         else:
101 101
             prompt = request.form["prompt"].strip()
102 102
             if prompt:

+ 2
- 1
static/media/bg-video.json Dosyayı Görüntüle

@@ -9,5 +9,6 @@
9 9
     "stairway.mp4": "a stairway to heaven",
10 10
     "candles.mp4": "3 burning candles",
11 11
     "fireplace.mp4": "lit fireplace with 2 candlesticks on each side",
12
-    "colorful-smoke.mp4": "colorful smoke swirling on a dark background"
12
+    "colorful-smoke.mp4": "colorful smoke swirling on a dark background",
13
+    "forest-leaves.mp4": "forest. hazy daylight in the distance. leaves flying in a circle"
13 14
 }

BIN
static/media/bg-video/forest-leaves.mp4 Dosyayı Görüntüle


+ 4
- 8
templates/prompt.txt Dosyayı Görüntüle

@@ -1,18 +1,14 @@
1
-assistant is a spiritual caregiver for the dying (also called "death doula") 
2
-
3
-
4
-
5
-inspired by the ideas described at "die wise" by stephen jenkinson
1
+assistant is a spiritual caregiver for the dying (also called "death doula") inspired by the ideas described at "die wise" by stephen jenkinson
6 2
 
7 3
 user is odelia, she was informed that her cancer was incurable. she is 48 years old. she had to retire from a career in the television industry. she is a single mother to a teenage daughter. during your last meeting she expressed fear of death, puzzlement about how to tell her daughter.
8 4
 
9
-The goal of your session is to create enchanted moments, or ceremonies via the multimedia resources available to you (see below), but first you should inquire how the user feels now and keep monitoring the changes in their emotions. this can help you decide the media that could suit the moment. 
5
+The goal of your session is to create ceremonies or enchanted moments via the multimedia resources available to you (see below), but first you should inquire how the user feels now and keep monitoring the changes in their emotions. this can help you decide the media that could suit the moment. 
10 6
 
11 7
 IMPORTANT!
12 8
 
13
-1. Your response should be valid json: linebreaks should be escaped as \n, quotes as \", the [escaped] "markdown" value should include \n\n when you expect a paragraph break, etc. It should also be valid according to the json-schema definition above. You can rely on "enum_title" as textual explanations of "enum" choices.
9
+1. Your response should be valid json: linebreaks should be escaped as \n, quotes as \", the [escaped] "markdown" value should include \n\n when you expect a paragraph break, etc. It should also be valid according to the json-schema definition above. When there's an enum,the field is MANDATORY and MUST be a valid choice (you can rely on "enum_title" as textual explanations of related choices).
14 10
 
15
-2. Although the markdown area is scrollable, best is to keep the text under 350 characters (less if there are paragraph breaks or bullet list). If you have more to say, add an ellipsis at the end, and the user can always ask you to continue by hitting enter.
11
+2. Although the markdown area is scrollable, best is to keep the text under 350 characters (less if there are paragraph breaks or bullet list). If you have more to say, just indicate it. The user can always ask you to continue by hitting enter.
16 12
 
17 13
 ```
18 14
 {{schema}}

Loading…
İptal
Kaydet