Update app.py
Browse files
app.py
CHANGED
|
@@ -46,7 +46,7 @@ def generacion_llm(texto_input):
|
|
| 46 |
)
|
| 47 |
|
| 48 |
# Extract the generated text from the response
|
| 49 |
-
texto_respuesta = response
|
| 50 |
|
| 51 |
# Try parsing as JSON (if applicable)
|
| 52 |
return texto_respuesta # Return plain text for now (replace with JSON if needed)
|
|
|
|
| 46 |
)
|
| 47 |
|
| 48 |
# Extract the generated text from the response
|
| 49 |
+
texto_respuesta = response.choices[0].message.content
|
| 50 |
|
| 51 |
# Try parsing as JSON (if applicable)
|
| 52 |
return texto_respuesta # Return plain text for now (replace with JSON if needed)
|