taskswithcode commited on
Commit
531cf19
·
1 Parent(s): 87e5035

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -130,13 +130,13 @@ def inference(img):
130
  f"{predicted_label} - X:({int(x0)} Y: {int(y0)} Width {int(width)} Height: {int(height)})"
131
  )
132
 
133
- chat_gpt_response = get_response_from_chatbot(
134
- f"You are an intelligent image captioner. I will hand you the objects and their position, and you should give me a detailed description for the photo. In this photo we have the following objects\n{object_list_str}"
135
- )
136
 
137
  return (
138
  Image.fromarray(np.uint8(out.get_image())).convert("RGB"),
139
- chat_gpt_response,
140
  )
141
 
142
 
 
130
  f"{predicted_label} - X:({int(x0)} Y: {int(y0)} Width {int(width)} Height: {int(height)})"
131
  )
132
 
133
+ #chat_gpt_response = get_response_from_chatbot(
134
+ # f"You are an intelligent image captioner. I will hand you the objects and their position, and you should give me a detailed description for the photo. In this photo we have the following objects\n{object_list_str}"
135
+ #)
136
 
137
  return (
138
  Image.fromarray(np.uint8(out.get_image())).convert("RGB"),
139
+ f"You are an intelligent image captioner. I will hand you the objects and their position, and you should give me a detailed description for the photo. In this photo we have the following objects\n{object_list_str}"
140
  )
141
 
142