Update app.py
Browse files
app.py
CHANGED
@@ -22,7 +22,7 @@ emotion_labels = ["admiration", "amusement", "anger", "annoyance", "approval",
|
|
22 |
"neutral"]
|
23 |
|
24 |
# Function to classify emotions in batches
|
25 |
-
def classify_emotions_in_batches(texts, batch_size=
|
26 |
results = []
|
27 |
start_time = time.time()
|
28 |
for i in range(0, len(texts), batch_size):
|
|
|
22 |
"neutral"]
|
23 |
|
24 |
# Function to classify emotions in batches
|
25 |
+
def classify_emotions_in_batches(texts, batch_size=1024):
|
26 |
results = []
|
27 |
start_time = time.time()
|
28 |
for i in range(0, len(texts), batch_size):
|