Spaces:
Sleeping
Sleeping
Update app/utils/groq_client.py
Browse files- app/utils/groq_client.py +1 -1
app/utils/groq_client.py
CHANGED
|
@@ -118,7 +118,7 @@ class GroqClient:
|
|
| 118 |
)
|
| 119 |
text_output = chat_completion.choices[0].message.content
|
| 120 |
print(text_output)
|
| 121 |
-
json_output = extract_json(text_output)
|
| 122 |
# Validate if the output is valid JSON
|
| 123 |
try:
|
| 124 |
json.loads(json_output)
|
|
|
|
| 118 |
)
|
| 119 |
text_output = chat_completion.choices[0].message.content
|
| 120 |
print(text_output)
|
| 121 |
+
json_output = self.extract_json(text_output)
|
| 122 |
# Validate if the output is valid JSON
|
| 123 |
try:
|
| 124 |
json.loads(json_output)
|