Spaces:
Runtime error
Runtime error
Check
Browse files
app.py
CHANGED
@@ -35,7 +35,8 @@ def predict_coordinates(text):
|
|
35 |
encoding = tokenizer(text, padding="max_length", truncation=True, \
|
36 |
max_length=128, return_tensors='pt')
|
37 |
outputs = coordinates_model(**encoding)
|
38 |
-
|
|
|
39 |
|
40 |
def predict(text):
|
41 |
text = process_tweet(text)
|
|
|
35 |
encoding = tokenizer(text, padding="max_length", truncation=True, \
|
36 |
max_length=128, return_tensors='pt')
|
37 |
outputs = coordinates_model(**encoding)
|
38 |
+
print(outputs)
|
39 |
+
return outputs[0][0][0], outputs[0][0][1]
|
40 |
|
41 |
def predict(text):
|
42 |
text = process_tweet(text)
|