Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -76,6 +76,7 @@ def geolocate_text_byt5(text):
|
|
| 76 |
|
| 77 |
|
| 78 |
model = ByT5ForTextGeotagging.from_pretrained("yachay/byt5-geotagging-es", token="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")
|
|
|
|
| 79 |
|
| 80 |
#text = "¡Barcelona es increíble! #VacacionesEnEspaña"
|
| 81 |
|
|
|
|
| 76 |
|
| 77 |
|
| 78 |
model = ByT5ForTextGeotagging.from_pretrained("yachay/byt5-geotagging-es", token="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")
|
| 79 |
+
byt5_tokenizer = AutoTokenizer.from_pretrained("yachay/byt5-geotagging-es", token="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")
|
| 80 |
|
| 81 |
#text = "¡Barcelona es increíble! #VacacionesEnEspaña"
|
| 82 |
|