Spaces:
Sleeping
Sleeping
Upload app.py
Browse files
app.py
CHANGED
@@ -4,12 +4,15 @@ import requests
|
|
4 |
import os
|
5 |
HF_API_TOKEN = os.getenv("HF_API_TOKEN")
|
6 |
|
7 |
-
API_URL = "https://api-inference.huggingface.co/models/
|
8 |
-
headers = {
|
9 |
|
10 |
def accionar_ai(pregunta):
|
11 |
prompt = f"""
|
12 |
-
|
|
|
|
|
|
|
13 |
Pregunta: {pregunta}
|
14 |
Sugerencia:
|
15 |
"""
|
|
|
4 |
import os
|
5 |
HF_API_TOKEN = os.getenv("HF_API_TOKEN")
|
6 |
|
7 |
+
API_URL = "https://api-inference.huggingface.co/models/datificate/gpt2-small-spanish"
|
8 |
+
headers = {}
|
9 |
|
10 |
def accionar_ai(pregunta):
|
11 |
prompt = f"""
|
12 |
+
Soy Accionar AI, una herramienta digital que apoya a activistas, colectivas y movimientos sociales de América Latina.
|
13 |
+
|
14 |
+
Cuando alguien me escribe una idea o pregunta, les doy sugerencias claras para empezar una campaña con enfoque de derechos humanos, justicia climática, feminismos o participación ciudadana.
|
15 |
+
|
16 |
Pregunta: {pregunta}
|
17 |
Sugerencia:
|
18 |
"""
|