Commit
·
cd66250
1
Parent(s):
7b4983b
Update app.py
Browse files
app.py
CHANGED
@@ -42,7 +42,6 @@ def zero_shot(doc, candidates):
|
|
42 |
given_labels = candidates.split(",")
|
43 |
given_labels = list(map(str.strip, given_labels))
|
44 |
doc = preprocess(doc)
|
45 |
-
# doc = get_google_description(doc)
|
46 |
print(doc)
|
47 |
dictionary = classifier(doc, given_labels)
|
48 |
labels = dictionary['labels']
|
@@ -68,6 +67,8 @@ def preprocess(text):
|
|
68 |
|
69 |
# Convert to lowercase
|
70 |
cleaned_text = cleaned_text.lower()
|
|
|
|
|
71 |
|
72 |
return cleaned_text
|
73 |
|
|
|
42 |
given_labels = candidates.split(",")
|
43 |
given_labels = list(map(str.strip, given_labels))
|
44 |
doc = preprocess(doc)
|
|
|
45 |
print(doc)
|
46 |
dictionary = classifier(doc, given_labels)
|
47 |
labels = dictionary['labels']
|
|
|
67 |
|
68 |
# Convert to lowercase
|
69 |
cleaned_text = cleaned_text.lower()
|
70 |
+
|
71 |
+
cleaned_text = get_google_description(doc)
|
72 |
|
73 |
return cleaned_text
|
74 |
|