Spaces:
Sleeping
Sleeping
Commit
·
44414ac
1
Parent(s):
46ea120
added object detection imporved
Browse files- QA_bot.py +1 -1
- tool_utils/yolo_world.py +1 -1
QA_bot.py
CHANGED
@@ -44,7 +44,7 @@ def tyre_synap_bot(filter_agent,image_file_path):
|
|
44 |
with st.chat_message("assistant"):
|
45 |
message_placeholder = st.empty()
|
46 |
full_response = ""
|
47 |
-
if '
|
48 |
display_mask_image('final_mask.png')
|
49 |
|
50 |
for chunk in re.split(r'(\s+)', response):
|
|
|
44 |
with st.chat_message("assistant"):
|
45 |
message_placeholder = st.empty()
|
46 |
full_response = ""
|
47 |
+
if ('Segmentation image' in ai_response['output']) or ('predicted_image' in ai_response['output']):
|
48 |
display_mask_image('final_mask.png')
|
49 |
|
50 |
for chunk in re.split(r'(\s+)', response):
|
tool_utils/yolo_world.py
CHANGED
@@ -83,7 +83,7 @@ class YoloWorld:
|
|
83 |
)
|
84 |
|
85 |
cv2.imwrite('final_mask.png', cv2.cvtColor(detected_image,cv2.COLOR_BGR2RGB))
|
86 |
-
return "Predicted image : final_mask.
|
87 |
|
88 |
# if __name__ == "__main__":
|
89 |
# yolo = YoloWorld()
|
|
|
83 |
)
|
84 |
|
85 |
cv2.imwrite('final_mask.png', cv2.cvtColor(detected_image,cv2.COLOR_BGR2RGB))
|
86 |
+
return "Predicted image : final_mask.png . Details :{}".format(processed_predictions[0])
|
87 |
|
88 |
# if __name__ == "__main__":
|
89 |
# yolo = YoloWorld()
|