> For the complete documentation index, see [llms.txt](https://docs.tabiya.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.tabiya.org/tabiya-documentation/es/nuestra-pila-tecnologica/livelihoods-classifier/web-application.md).

# Aplicación web

Para facilitar su uso, desarrollamos una aplicación FullStack simple (una API basada en Flask como BackEnd y un FrontEnd con jQuery) para analizar descripciones de trabajo y predecir ocupaciones, habilidades y calificaciones relevantes utilizando el modelo de enlace de entidades.

### Uso

Primero, active el entorno virtual como se explicó [aquí](/tabiya-documentation/es/nuestra-pila-tecnologica/livelihoods-classifier/getting-started.md#dep). Luego, ejecute el siguiente comando en python en el `raíz` directorio:

#### Ejecución de la API

**Ejecute la aplicación Flask**:

```bash
python app/server/matching.py
```

O establezca la variable de entorno de la aplicación Flask y use el comando Flask:

```bash
export FLASK_APP=app/server/matching.py
flask run --host=0.0.0.0 --port=5001
```

### Ejemplo de uso

1. **Abra el navegador** y navegue a `http://127.0.0.1:5001/`.
2. **Pegue una descripción de trabajo** en el área de texto proporcionada.
3. **Haga clic en el botón "Analizar trabajo"** para enviar la descripción del trabajo al `/match` endpoint.
4. **Ver los resultados** bajo "Ocupaciones predichas", "Habilidades predichas" y "Calificaciones predichas."

{% hint style="danger" %}
Esta aplicación es solo para fines de demostración. Si desea desplegar este modelo, use una estrategia más confiable/segura.
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.tabiya.org/tabiya-documentation/es/nuestra-pila-tecnologica/livelihoods-classifier/web-application.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
