Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -499,7 +499,11 @@ class JobPotral:
|
|
| 499 |
|
| 500 |
prompt_template_ = [
|
| 501 |
{"role": "system", "content": "You are a helpful assistant."},
|
| 502 |
-
{"role": "user", "content": f"read and analyse to return suggestion reviews,postive reviews and negative reviews with label ***{reviews}***.
|
|
|
|
|
|
|
|
|
|
|
|
|
| 503 |
]
|
| 504 |
# Construct the prompt for OpenAI API
|
| 505 |
# Call OpenAI API with the given prompt
|
|
|
|
| 499 |
|
| 500 |
prompt_template_ = [
|
| 501 |
{"role": "system", "content": "You are a helpful assistant."},
|
| 502 |
+
{"role": "user", "content": f"""read and analyse to return suggestion reviews,postive reviews and negative reviews with label ***{reviews}***.
|
| 503 |
+
the result should be in this format:
|
| 504 |
+
Suggestion Reviews:
|
| 505 |
+
Positive Reviews:
|
| 506 |
+
Negative Reviews:"""}
|
| 507 |
]
|
| 508 |
# Construct the prompt for OpenAI API
|
| 509 |
# Call OpenAI API with the given prompt
|