Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -144,7 +144,7 @@ def generar_texto_groq(prompt):
|
|
| 144 |
response.raise_for_status()
|
| 145 |
result = response.json()
|
| 146 |
return result['choices'][0]['text'].strip()
|
| 147 |
-
except
|
| 148 |
return f"Error en la generaci贸n de texto: {e}"
|
| 149 |
|
| 150 |
# Funci贸n para generar reflexi贸n usando Groq
|
|
|
|
| 144 |
response.raise_for_status()
|
| 145 |
result = response.json()
|
| 146 |
return result['choices'][0]['text'].strip()
|
| 147 |
+
except requests.exceptions.RequestException as e:
|
| 148 |
return f"Error en la generaci贸n de texto: {e}"
|
| 149 |
|
| 150 |
# Funci贸n para generar reflexi贸n usando Groq
|