Spaces:
Running
on
Zero
Running
on
Zero
Update classifier.py
Browse files- classifier.py +2 -0
classifier.py
CHANGED
@@ -1,5 +1,7 @@
|
|
|
|
1 |
from transformers import pipeline
|
2 |
|
|
|
3 |
def classify(tweet, event_model, hftoken):
|
4 |
|
5 |
# event type prediction
|
|
|
1 |
+
import spaces
|
2 |
from transformers import pipeline
|
3 |
|
4 |
+
@spaces.GPU(duration=120)
|
5 |
def classify(tweet, event_model, hftoken):
|
6 |
|
7 |
# event type prediction
|