Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -84,7 +84,7 @@ def analyze_sentiment(text):
|
|
| 84 |
response = grog_client.chat.completions.create(
|
| 85 |
model="llama3-8b-8192", # Specify the model to be used for generating the completion
|
| 86 |
messages=[
|
| 87 |
-
{"role": "system", "content": "
|
| 88 |
{"role": "user", "content": text}
|
| 89 |
],
|
| 90 |
temperature=0.0, # Control the randomness of the output (0.0 means deterministic output)
|
|
|
|
| 84 |
response = grog_client.chat.completions.create(
|
| 85 |
model="llama3-8b-8192", # Specify the model to be used for generating the completion
|
| 86 |
messages=[
|
| 87 |
+
{"role": "system", "content": "Analyze the sentiment of this text and return only 'Positive', 'Negative', or 'Neutral'."},
|
| 88 |
{"role": "user", "content": text}
|
| 89 |
],
|
| 90 |
temperature=0.0, # Control the randomness of the output (0.0 means deterministic output)
|