Spaces:
Running
on
Zero
Running
on
Zero
Mike Afton
commited on
Commit
•
64712db
1
Parent(s):
173fbaa
Update app.py
Browse files
app.py
CHANGED
@@ -108,7 +108,7 @@ def getDescript(image_captioner,img1):
|
|
108 |
return caption
|
109 |
|
110 |
def rmGPT(caption,remove_class):
|
111 |
-
arstr=
|
112 |
popular=get_most_similar_string(remove_class,arstr)
|
113 |
ind=arstr.index(popular)
|
114 |
new=[]
|
|
|
108 |
return caption
|
109 |
|
110 |
def rmGPT(caption,remove_class):
|
111 |
+
arstr=caption.split(' ')
|
112 |
popular=get_most_similar_string(remove_class,arstr)
|
113 |
ind=arstr.index(popular)
|
114 |
new=[]
|