Spaces:
Runtime error
Runtime error
Owen Wang
commited on
Commit
·
d13ddca
1
Parent(s):
9a67629
better prompt
Browse files
app.py
CHANGED
|
@@ -127,13 +127,13 @@ def generate_ideas(metadatas, interests):
|
|
| 127 |
def generate_application(metadata, interests):
|
| 128 |
prompt = f"""
|
| 129 |
You are now writing a description for the lesson titled \"{metadata['title']}\".
|
| 130 |
-
This description comes after the title so
|
| 131 |
Sound like you're naturally explaining the lesson in person.
|
| 132 |
Describe the lesson and its outcome in one sentence objectively.
|
| 133 |
Next, in one separate and concise sentence, explain what the student can now do after learning this lesson.
|
| 134 |
Use one of the previously described ambitious projects that's relevant to this lesson.
|
| 135 |
Explain the project in full, this is the first time you're talking to the student about it.
|
| 136 |
-
Don't put the project in quotes.
|
| 137 |
Don't repeat an example of a project if you've used it for a previous lesson.
|
| 138 |
The sentence should implicitly help the student to feel inspired to connect with the lesson.
|
| 139 |
Change your sentence structures compared to your previous responses.
|
|
|
|
| 127 |
def generate_application(metadata, interests):
|
| 128 |
prompt = f"""
|
| 129 |
You are now writing a description for the lesson titled \"{metadata['title']}\".
|
| 130 |
+
This description comes after the title so don't mention the title explicitly.
|
| 131 |
Sound like you're naturally explaining the lesson in person.
|
| 132 |
Describe the lesson and its outcome in one sentence objectively.
|
| 133 |
Next, in one separate and concise sentence, explain what the student can now do after learning this lesson.
|
| 134 |
Use one of the previously described ambitious projects that's relevant to this lesson.
|
| 135 |
Explain the project in full, this is the first time you're talking to the student about it.
|
| 136 |
+
Don't put the project in quotes, don't explicitly use the words "ambitious project".
|
| 137 |
Don't repeat an example of a project if you've used it for a previous lesson.
|
| 138 |
The sentence should implicitly help the student to feel inspired to connect with the lesson.
|
| 139 |
Change your sentence structures compared to your previous responses.
|