YellowAlberto commited on
Commit
476e132
·
verified ·
1 Parent(s): 681bfd2

Update app_front.py

Browse files
Files changed (1) hide show
  1. app_front.py +2 -2
app_front.py CHANGED
@@ -77,7 +77,7 @@ def analizar_foto(token, imagen):
77
  msg_formateado = msg_crudo.replace("|", "\n\n")
78
  msg_formateado = re.sub(r' +', ' ', msg_formateado).strip()
79
  img_res = Image.open(io.BytesIO(res.content))
80
- return f"## {robot_html} ReciclIA Dice:\n\n{msg_formateado}\n\n**Objeto:** {det}", img_res, gr.update()
81
  return f" Error: {res.text}", None, gr.update()
82
  except Exception as e: return f" Error: {str(e)}", None, gr.update()
83
 
@@ -128,7 +128,7 @@ def vaciar_historial_usuario(token):
128
 
129
  with gr.Blocks(css=custom_css) as demo:
130
  token_state = gr.State()
131
- gr.Markdown(f"# {robot_html} ReciclIA : Tu Asistente Inteligente de Reciclaje", elem_id="titulo-proyecto")
132
 
133
  with gr.Tabs() as main_tabs:
134
 
 
77
  msg_formateado = msg_crudo.replace("|", "\n\n")
78
  msg_formateado = re.sub(r' +', ' ', msg_formateado).strip()
79
  img_res = Image.open(io.BytesIO(res.content))
80
+ return f"## {robot_html} ReciclA Dice:\n\n{msg_formateado}\n\n**Objeto:** {det}", img_res, gr.update()
81
  return f" Error: {res.text}", None, gr.update()
82
  except Exception as e: return f" Error: {str(e)}", None, gr.update()
83
 
 
128
 
129
  with gr.Blocks(css=custom_css) as demo:
130
  token_state = gr.State()
131
+ gr.Markdown(f"# {robot_html} ReciclA : Tu Asistente Inteligente de Reciclaje", elem_id="titulo-proyecto")
132
 
133
  with gr.Tabs() as main_tabs:
134