Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -5,6 +5,7 @@ from transformers import pipeline
|
|
| 5 |
|
| 6 |
classifier = pipeline("zero-shot-classification", model=os.getenv('MODEL'))
|
| 7 |
|
|
|
|
| 8 |
def classify(text, labels):
|
| 9 |
if not text or not labels:
|
| 10 |
return []
|
|
|
|
| 5 |
|
| 6 |
classifier = pipeline("zero-shot-classification", model=os.getenv('MODEL'))
|
| 7 |
|
| 8 |
+
@spaces.GPU(duration=120)
|
| 9 |
def classify(text, labels):
|
| 10 |
if not text or not labels:
|
| 11 |
return []
|