JuanMa360 commited on
Commit
3efcae6
1 Parent(s): d5c9e08

bugfix: format

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -24,6 +24,7 @@ def slow_api_response(message, history):
24
  # Realiza la solicitud POST a la API
25
  response = requests.request("POST", url, headers=headers, data=payload)
26
  api_response = response.text
 
27
 
28
  # Simula una respuesta progresiva
29
  for i in range(len(api_response)):
 
24
  # Realiza la solicitud POST a la API
25
  response = requests.request("POST", url, headers=headers, data=payload)
26
  api_response = response.text
27
+ api_response = api_response.encode().decode('unicode_escape')
28
 
29
  # Simula una respuesta progresiva
30
  for i in range(len(api_response)):