Spaces:
Runtime error
Runtime error
Commit
·
7710d42
1
Parent(s):
35b00ff
Update app.py
Browse files
app.py
CHANGED
@@ -291,28 +291,14 @@ class BLIPVQA:
|
|
291 |
class ConversationBot:
|
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:1")
|
298 |
self.image2canny = image2canny()
|
299 |
self.canny2image = canny2image(device="cuda:1")
|
300 |
-
self.
|
301 |
-
self.
|
302 |
-
self.image2hed = image2hed()
|
303 |
-
self.hed2image = hed2image(device="cuda:2")
|
304 |
-
self.image2scribble = image2scribble()
|
305 |
-
self.scribble2image = scribble2image(device="cuda:3")
|
306 |
-
self.image2pose = image2pose()
|
307 |
-
self.pose2image = pose2image(device="cuda:3")
|
308 |
-
self.BLIPVQA = BLIPVQA(device="cuda:4")
|
309 |
-
self.image2seg = image2seg()
|
310 |
-
self.seg2image = seg2image(device="cuda:7")
|
311 |
-
self.image2depth = image2depth()
|
312 |
-
self.depth2image = depth2image(device="cuda:7")
|
313 |
-
self.image2normal = image2normal()
|
314 |
-
self.normal2image = normal2image(device="cuda:5")
|
315 |
-
self.pix2pix = Pix2Pix(device="cuda:3")
|
316 |
self.memory = ConversationBufferMemory(memory_key="chat_history", output_key='output')
|
317 |
self.tools = [
|
318 |
Tool(name="Get Photo Description", func=self.i2t.inference,
|
|
|
291 |
class ConversationBot:
|
292 |
def __init__(self):
|
293 |
print("Initializing VisualChatGPT")
|
294 |
+
self.llm = OpenAI(temperature=0, openai_api_key = )
|
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,
|