Spaces:
Sleeping
Sleeping
Commit
·
a35a72c
1
Parent(s):
c7f9f06
[FIX] README
Browse files
README.md
CHANGED
|
@@ -11,3 +11,9 @@ license: mit
|
|
| 11 |
---
|
| 12 |
|
| 13 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
---
|
| 12 |
|
| 13 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
| 14 |
+
|
| 15 |
+
## Para usarlo necesitas ...
|
| 16 |
+
```commandline
|
| 17 |
+
1. Crear archivo .env
|
| 18 |
+
2. en .env escribir API_KEY="ingresa aquí tú clave de la API de google"
|
| 19 |
+
```
|
app.py
CHANGED
|
@@ -30,6 +30,7 @@ k_optimo = st.number_input(
|
|
| 30 |
max_value=means.max_k, step=1
|
| 31 |
)
|
| 32 |
|
|
|
|
| 33 |
modelo = means.KMeans(n_clusters=k_optimo, random_state=42)
|
| 34 |
modelo.fit(geocoding.coordenadas)
|
| 35 |
|
|
|
|
| 30 |
max_value=means.max_k, step=1
|
| 31 |
)
|
| 32 |
|
| 33 |
+
# Llamada means
|
| 34 |
modelo = means.KMeans(n_clusters=k_optimo, random_state=42)
|
| 35 |
modelo.fit(geocoding.coordenadas)
|
| 36 |
|