Spaces:
Runtime error
Runtime error
Update demo/agent.py
Browse files- demo/agent.py +2 -1
demo/agent.py
CHANGED
@@ -16,7 +16,8 @@ class ConversationalAgent:
|
|
16 |
model_path,
|
17 |
chat_template_config=ChatTemplateConfig(model_name='internvl2-internlm2'),
|
18 |
# backend_config=TurbomindEngineConfig(session_len=8192),
|
19 |
-
backend_config=backend_config
|
|
|
20 |
)
|
21 |
|
22 |
self.uploaded_images_storage = os.path.join(outputs_dir, "uploaded")
|
|
|
16 |
model_path,
|
17 |
chat_template_config=ChatTemplateConfig(model_name='internvl2-internlm2'),
|
18 |
# backend_config=TurbomindEngineConfig(session_len=8192),
|
19 |
+
backend_config=backend_config,
|
20 |
+
device=self.device
|
21 |
)
|
22 |
|
23 |
self.uploaded_images_storage = os.path.join(outputs_dir, "uploaded")
|