AugustinHuang commited on
Commit
b5061a3
·
verified ·
1 Parent(s): 157f214

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -8
app.py CHANGED
@@ -38,10 +38,11 @@ class TaskDashboardAI_Vietnamese:
38
  try:
39
  client = Groq(api_key=api_key)
40
  response = client.chat.completions.create(
41
- model="llama-3.1-8b-instant",
42
  messages=[{"role": "user", "content": prompt}],
43
- temperature=0.2,
44
- max_tokens=400
 
45
  )
46
  return response.choices[0].message.content
47
  except Exception as e:
@@ -137,11 +138,11 @@ Văn bản cần phân tích: {text}"""
137
  margin=dict(t=20, b=100, l=20, r=20), # Bottom margin lớn (100) để chứa legend bên dưới
138
  showlegend=True,
139
  legend=dict(
140
- orientation="h",
141
- yanchor="bottom",
142
- y=-0.18, # Đẩy legend xuống hẳn vùng bottom margin
143
- xanchor="center",
144
- x=0.5,
145
  font=dict(size=10),
146
  bgcolor="rgba(0,0,0,0)",
147
  traceorder="grouped"
 
38
  try:
39
  client = Groq(api_key=api_key)
40
  response = client.chat.completions.create(
41
+ model="llama-3.3-70b-versatile",
42
  messages=[{"role": "user", "content": prompt}],
43
+ temperature=0.15,
44
+ max_tokens=600,
45
+ top_p=0.9
46
  )
47
  return response.choices[0].message.content
48
  except Exception as e:
 
138
  margin=dict(t=20, b=100, l=20, r=20), # Bottom margin lớn (100) để chứa legend bên dưới
139
  showlegend=True,
140
  legend=dict(
141
+ orientation="v",
142
+ yanchor="top",
143
+ y=0.98,
144
+ xanchor="right",
145
+ x=0.98,
146
  font=dict(size=10),
147
  bgcolor="rgba(0,0,0,0)",
148
  traceorder="grouped"