lmzjms commited on
Commit
7f627b0
·
1 Parent(s): 1ed672c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -5
app.py CHANGED
@@ -126,11 +126,6 @@ class ConversationBot:
126
  img = img.convert('RGB')
127
  img.save(image_filename, "PNG")
128
  print(f"Resize image form {width}x{height} to {width_new}x{height_new}")
129
- # description = self.i2t.inference(image_filename)
130
- # Human_prompt = "\nHuman: provide a figure named {}. The description is: {}. This information helps you to understand this image, but you should use tools to finish following tasks, " \
131
- # "rather than directly imagine from my description. If you understand, say \"Received\". \n".format(image_filename, description)
132
- # AI_prompt = "Received. "
133
- # self.agent.memory.buffer = self.agent.memory.buffer + Human_prompt + 'AI: ' + AI_prompt
134
  AI_prompt = "Received. "
135
  self.agent.memory.buffer = self.agent.memory.buffer + 'AI: ' + AI_prompt
136
  print("======>Current memory:\n %s" % self.agent.memory)
 
126
  img = img.convert('RGB')
127
  img.save(image_filename, "PNG")
128
  print(f"Resize image form {width}x{height} to {width_new}x{height_new}")
 
 
 
 
 
129
  AI_prompt = "Received. "
130
  self.agent.memory.buffer = self.agent.memory.buffer + 'AI: ' + AI_prompt
131
  print("======>Current memory:\n %s" % self.agent.memory)