Spaces:
Sleeping
Sleeping
fix syntax
Browse files
app.py
CHANGED
|
@@ -20,7 +20,8 @@ classifier = pipeline("text-classification", model="distilbert/distilbert-base-u
|
|
| 20 |
generator = pipeline("text2text-generation", model="google/flan-t5-base")
|
| 21 |
|
| 22 |
# Function to classify customer comments
|
| 23 |
-
|
|
|
|
| 24 |
def classify_comments():
|
| 25 |
sentiments = []
|
| 26 |
categories = []
|
|
|
|
| 20 |
generator = pipeline("text2text-generation", model="google/flan-t5-base")
|
| 21 |
|
| 22 |
# Function to classify customer comments
|
| 23 |
+
# https://huggingface.co/docs/hub/spaces-zerogpu
|
| 24 |
+
@spaces.GPU
|
| 25 |
def classify_comments():
|
| 26 |
sentiments = []
|
| 27 |
categories = []
|