mirror of
https://github.com/trycua/computer.git
synced 2026-01-06 13:30:06 -06:00
Detect if PYLUME_HOST is set
This commit is contained in:
@@ -133,8 +133,11 @@ class GradioChatScreenshotHandler(DefaultCallbackHandler):
|
||||
is_mac = platform.system().lower() == "darwin"
|
||||
|
||||
# Detect if lume is available (host device is macOS)
|
||||
is_arm64 = platform.machine().lower() == "arm64"
|
||||
is_lume_available = is_mac or (is_arm64 and os.environ.get("LUME_HOST", "localhost") != "localhost")
|
||||
is_lume_available = is_mac or (os.environ.get("PYLUME_HOST", "localhost") != "localhost")
|
||||
|
||||
print("PYLUME_HOST: ", os.environ.get("PYLUME_HOST", "localhost"))
|
||||
print("is_mac: ", is_mac)
|
||||
print("Lume available: ", is_lume_available)
|
||||
|
||||
# Map model names to specific provider model names
|
||||
MODEL_MAPPINGS = {
|
||||
|
||||
Reference in New Issue
Block a user