Spaces:
Sleeping
Sleeping
update README.md
Browse files
README.md
CHANGED
|
@@ -1,45 +1,44 @@
|
|
| 1 |
-
---
|
| 2 |
-
title: Resumidor de Texto BERT2BERT
|
| 3 |
-
emoji: 📝
|
| 4 |
-
colorFrom: blue
|
| 5 |
-
colorTo: green
|
| 6 |
-
sdk: gradio
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
- **
|
| 19 |
-
- **
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
summarizer
|
| 40 |
-
"
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
```
|
|
|
|
| 1 |
+
---
|
| 2 |
+
title: Resumidor de Texto BERT2BERT
|
| 3 |
+
emoji: 📝
|
| 4 |
+
colorFrom: blue
|
| 5 |
+
colorTo: green
|
| 6 |
+
sdk: gradio
|
| 7 |
+
app_file: app.py
|
| 8 |
+
pinned: false
|
| 9 |
+
---
|
| 10 |
+
|
| 11 |
+
# 📝 Resumidor de Texto (BERT2BERT)
|
| 12 |
+
|
| 13 |
+
Resume textos largos en español usando el modelo **BERT2BERT** con técnica de micro-chunking.
|
| 14 |
+
|
| 15 |
+
## Modelo
|
| 16 |
+
|
| 17 |
+
- **Nombre:** `mrm8488/bert2bert_shared-spanish-finetuned-summarization`
|
| 18 |
+
- **Tipo:** Encoder-Decoder (BERT2BERT)
|
| 19 |
+
- **Idioma:** Español
|
| 20 |
+
|
| 21 |
+
## API
|
| 22 |
+
|
| 23 |
+
Este espacio expone una API que puede ser usada con Gradio Client o Daggr:
|
| 24 |
+
|
| 25 |
+
```python
|
| 26 |
+
from gradio_client import Client
|
| 27 |
+
|
| 28 |
+
client = Client("tu-usuario/summarizer")
|
| 29 |
+
result = client.predict(texto="Tu texto largo aquí...")
|
| 30 |
+
print(result)
|
| 31 |
+
```
|
| 32 |
+
|
| 33 |
+
## Uso con Daggr
|
| 34 |
+
|
| 35 |
+
```python
|
| 36 |
+
from daggr import GradioNode
|
| 37 |
+
|
| 38 |
+
summarizer = GradioNode(
|
| 39 |
+
"tu-usuario/summarizer",
|
| 40 |
+
api_name="/predict",
|
| 41 |
+
inputs={"texto": gr.Textbox()},
|
| 42 |
+
outputs={"resumen": gr.Textbox()},
|
| 43 |
+
)
|
| 44 |
+
```
|
|
|