Please make this work
Browse files- handler.py +3 -2
handler.py
CHANGED
|
@@ -71,9 +71,10 @@ class EndpointHandler:
|
|
| 71 |
Suggestions for improvement: text
|
| 72 |
NEVER MENTION ANY INFORMATION THAT IS NOT RELEVANT FOR THE SURFER.
|
| 73 |
KEEP YOUR ANSWERS SHORT AND DIRECT AND DO NOT MENTION ANY INFORMATION OUTSIDE OF THE BEFORE MENTIONED STRUCTURE.
|
| 74 |
-
|
| 75 |
"""
|
| 76 |
|
|
|
|
| 77 |
# Define a conversation history for surfing pop-up move analysis
|
| 78 |
conversation = [
|
| 79 |
{
|
|
@@ -124,4 +125,4 @@ class EndpointHandler:
|
|
| 124 |
assistant_answer_start = generated_text[0].find("ASSISTANT:") + len("ASSISTANT:")
|
| 125 |
assistant_answer = generated_text[0][assistant_answer_start:].strip()
|
| 126 |
|
| 127 |
-
return [{"generated_text": assistant_answer}]
|
|
|
|
| 71 |
Suggestions for improvement: text
|
| 72 |
NEVER MENTION ANY INFORMATION THAT IS NOT RELEVANT FOR THE SURFER.
|
| 73 |
KEEP YOUR ANSWERS SHORT AND DIRECT AND DO NOT MENTION ANY INFORMATION OUTSIDE OF THE BEFORE MENTIONED STRUCTURE.
|
| 74 |
+
IMPORTANT: In the Balance and Control section you should also explain how the surfer performs their twists and turns after the pop-up is done.
|
| 75 |
"""
|
| 76 |
|
| 77 |
+
|
| 78 |
# Define a conversation history for surfing pop-up move analysis
|
| 79 |
conversation = [
|
| 80 |
{
|
|
|
|
| 125 |
assistant_answer_start = generated_text[0].find("ASSISTANT:") + len("ASSISTANT:")
|
| 126 |
assistant_answer = generated_text[0][assistant_answer_start:].strip()
|
| 127 |
|
| 128 |
+
return [{"generated_text": assistant_answer}]
|