Spaces:
Running
Running
cheng
commited on
Commit
•
16b4854
1
Parent(s):
2f73dc1
update text_input
Browse files- clip_component.py +1 -1
clip_component.py
CHANGED
@@ -43,7 +43,7 @@ def get_token_from_clip(image):
|
|
43 |
for result in results:
|
44 |
print(f"Text input: {result['text_input']}, Similarity: {result['similarity']:.2f}")
|
45 |
if result['similarity'] >= similarity_threshold:
|
46 |
-
detect_food += " " + text_input + " ."
|
47 |
|
48 |
detect_food_list = detect_food[1:]
|
49 |
return detect_food_list
|
|
|
43 |
for result in results:
|
44 |
print(f"Text input: {result['text_input']}, Similarity: {result['similarity']:.2f}")
|
45 |
if result['similarity'] >= similarity_threshold:
|
46 |
+
detect_food += " " + result['text_input'] + " ."
|
47 |
|
48 |
detect_food_list = detect_food[1:]
|
49 |
return detect_food_list
|