Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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.
|
| 42 |
messages=[{"role": "user", "content": prompt}],
|
| 43 |
-
temperature=0.
|
| 44 |
-
max_tokens=
|
|
|
|
| 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="
|
| 141 |
-
yanchor="
|
| 142 |
-
y=
|
| 143 |
-
xanchor="
|
| 144 |
-
x=0.
|
| 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"
|