salomonsky commited on
Commit
80771fe
verified
1 Parent(s): 6275a4d

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +64 -12
README.md CHANGED
@@ -1,12 +1,64 @@
1
- ---
2
- title: Chatbot Web App
3
- emoji: 馃寲
4
- colorFrom: pink
5
- colorTo: pink
6
- sdk: docker
7
- pinned: false
8
- license: mit
9
- short_description: chatbot-web-app
10
- ---
11
-
12
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Chatbot Web App
2
+
3
+ Una aplicaci贸n web de chatbot que utiliza Gemini Pro para generar respuestas y cuenta con capacidades de texto a voz.
4
+
5
+ ## Caracter铆sticas
6
+
7
+ - Interfaz web interactiva
8
+ - Integraci贸n con Gemini Pro
9
+ - Sistema de texto a voz (TTS) con m煤ltiples backends:
10
+ - Edge TTS
11
+ - gTTS
12
+ - Sistema de registro de chat
13
+ - Manejo de audio en tiempo real
14
+
15
+ ## Configuraci贸n
16
+
17
+ 1. Crea un archivo `.env` basado en `.env.example`
18
+ 2. Configura tu GOOGLE_API_KEY en el archivo `.env`
19
+ 3. Instala las dependencias: `pip install -r requirements.txt`
20
+ 4. Ejecuta la aplicaci贸n: `python app.py`
21
+
22
+ ## Variables de Entorno
23
+
24
+ - `GOOGLE_API_KEY`: Tu API key de Google para usar Gemini Pro
25
+
26
+ ## Requisitos
27
+
28
+ - Python 3.7+
29
+ - ngrok (para acceso remoto)
30
+
31
+ ## Instalaci贸n
32
+
33
+ 1. Instala las dependencias de Python:
34
+ ```bash
35
+ pip install -r requirements.txt
36
+ ```
37
+
38
+ 2. Configura tu token de ngrok en run_app.bat
39
+
40
+ ## Ejecuci贸n
41
+
42
+ Simplemente ejecuta:
43
+ ```bash
44
+ run_app.bat
45
+ ```
46
+
47
+ Esto:
48
+ - Limpiar谩 archivos temporales antiguos
49
+ - Configurar谩 ngrok
50
+ - Iniciar谩 el servidor Flask
51
+ - Abrir谩 el t煤nel ngrok
52
+
53
+ ## Estructura del Proyecto
54
+
55
+ - `/static`: Archivos est谩ticos
56
+ - `/temp_audio`: Archivos de audio temporales
57
+ - `/js`: Scripts de JavaScript
58
+ - `/templates`: Plantillas HTML
59
+ - `app.py`: Servidor Flask y endpoints
60
+ - `audio_utils.py`: Utilidades de audio y TTS
61
+ - `chat_log.py`: Registro de conversaciones
62
+ - `config.yaml`: Configuraci贸n del sistema
63
+ - `inference.py`: Integraci贸n con modelos de IA
64
+ - `run_app.bat`: Script de ejecuci贸n