RamAnanth1 commited on
Commit
ee727f1
·
1 Parent(s): 9cbb147

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -292,13 +292,13 @@ class ConversationBot:
292
  def __init__(self):
293
  print("Initializing VisualChatGPT")
294
  self.llm = OpenAI(temperature=0)
295
- self.edit = ImageEditing(device="cuda:1")
296
- self.i2t = ImageCaptioning(device="cuda:1")
297
- self.t2i = T2I(device="cuda:1")
298
  self.image2canny = image2canny()
299
- self.canny2image = canny2image(device="cuda:1")
300
- self.BLIPVQA = BLIPVQA(device="cuda:1")
301
- self.pix2pix = Pix2Pix(device="cuda:1")
302
  self.memory = ConversationBufferMemory(memory_key="chat_history", output_key='output')
303
  self.tools = [
304
  Tool(name="Get Photo Description", func=self.i2t.inference,
 
292
  def __init__(self):
293
  print("Initializing VisualChatGPT")
294
  self.llm = OpenAI(temperature=0)
295
+ self.edit = ImageEditing(device="cuda")
296
+ self.i2t = ImageCaptioning(device="cuda")
297
+ self.t2i = T2I(device="cuda")
298
  self.image2canny = image2canny()
299
+ self.canny2image = canny2image(device="cuda")
300
+ self.BLIPVQA = BLIPVQA(device="cuda")
301
+ self.pix2pix = Pix2Pix(device="cuda")
302
  self.memory = ConversationBufferMemory(memory_key="chat_history", output_key='output')
303
  self.tools = [
304
  Tool(name="Get Photo Description", func=self.i2t.inference,