chatbot-web-app / README.md
salomonsky's picture
Upload README.md with huggingface_hub
80771fe verified
|
raw
history blame
1.5 kB
# Chatbot Web App
Una aplicaci贸n web de chatbot que utiliza Gemini Pro para generar respuestas y cuenta con capacidades de texto a voz.
## Caracter铆sticas
- Interfaz web interactiva
- Integraci贸n con Gemini Pro
- Sistema de texto a voz (TTS) con m煤ltiples backends:
- Edge TTS
- gTTS
- Sistema de registro de chat
- Manejo de audio en tiempo real
## Configuraci贸n
1. Crea un archivo `.env` basado en `.env.example`
2. Configura tu GOOGLE_API_KEY en el archivo `.env`
3. Instala las dependencias: `pip install -r requirements.txt`
4. Ejecuta la aplicaci贸n: `python app.py`
## Variables de Entorno
- `GOOGLE_API_KEY`: Tu API key de Google para usar Gemini Pro
## Requisitos
- Python 3.7+
- ngrok (para acceso remoto)
## Instalaci贸n
1. Instala las dependencias de Python:
```bash
pip install -r requirements.txt
```
2. Configura tu token de ngrok en run_app.bat
## Ejecuci贸n
Simplemente ejecuta:
```bash
run_app.bat
```
Esto:
- Limpiar谩 archivos temporales antiguos
- Configurar谩 ngrok
- Iniciar谩 el servidor Flask
- Abrir谩 el t煤nel ngrok
## Estructura del Proyecto
- `/static`: Archivos est谩ticos
- `/temp_audio`: Archivos de audio temporales
- `/js`: Scripts de JavaScript
- `/templates`: Plantillas HTML
- `app.py`: Servidor Flask y endpoints
- `audio_utils.py`: Utilidades de audio y TTS
- `chat_log.py`: Registro de conversaciones
- `config.yaml`: Configuraci贸n del sistema
- `inference.py`: Integraci贸n con modelos de IA
- `run_app.bat`: Script de ejecuci贸n