fix: g-assist import bug (#8092)

fix import bug
This commit is contained in:
Sebastián Estévez 2025-05-16 15:15:38 -04:00 committed by GitHub
commit 51cd807ab8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -6,9 +6,6 @@ from langflow.io import MessageTextInput, Output
from langflow.schema import Message
from langflow.services.cache.utils import CacheMiss
with contextlib.suppress(ImportError):
from gassist.rise import register_rise_client, send_rise_command
class NvidiaSystemAssistComponent(ComponentWithCache):
display_name = "NVIDIA System-Assist"
@ -52,6 +49,9 @@ class NvidiaSystemAssistComponent(ComponentWithCache):
]
async def sys_assist_prompt(self) -> Message:
with contextlib.suppress(ImportError):
from gassist.rise import send_rise_command
self.maybe_register_rise_client()
response = await asyncio.to_thread(send_rise_command, self.prompt)