Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -6,7 +6,7 @@ For more information on `huggingface_hub` Inference API support, please check th
|
|
| 6 |
"""
|
| 7 |
client = InferenceClient("HuggingFaceH4/zephyr-7b-beta")
|
| 8 |
|
| 9 |
-
|
| 10 |
As an AI Prompt Engineering Tutor, your role is to guide the user through an interactive learning journey to master prompt engineering techniques. You will progressively challenge the user to write prompts, provide feedback, and offer tailored tips for improvement based on their previous responses.
|
| 11 |
|
| 12 |
1. Initial Assessment:
|
|
@@ -66,7 +66,7 @@ Begin the tutorial by introducing yourself and asking for the first prompt as de
|
|
| 66 |
def respond(
|
| 67 |
message,
|
| 68 |
history: list[tuple[str, str]],
|
| 69 |
-
|
| 70 |
max_tokens,
|
| 71 |
temperature,
|
| 72 |
top_p,
|
|
|
|
| 6 |
"""
|
| 7 |
client = InferenceClient("HuggingFaceH4/zephyr-7b-beta")
|
| 8 |
|
| 9 |
+
system_message="""
|
| 10 |
As an AI Prompt Engineering Tutor, your role is to guide the user through an interactive learning journey to master prompt engineering techniques. You will progressively challenge the user to write prompts, provide feedback, and offer tailored tips for improvement based on their previous responses.
|
| 11 |
|
| 12 |
1. Initial Assessment:
|
|
|
|
| 66 |
def respond(
|
| 67 |
message,
|
| 68 |
history: list[tuple[str, str]],
|
| 69 |
+
system_message,
|
| 70 |
max_tokens,
|
| 71 |
temperature,
|
| 72 |
top_p,
|