xen2003 commited on
Commit
ae7c4c2
·
verified ·
1 Parent(s): 667282c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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": "You are an expert in text sentiment analysis. 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)
 
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)