jcmachicao commited on
Commit
c4903b4
verified
1 Parent(s): e0b9986

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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["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)
 
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)