THED2 commited on
Commit
145fa90
·
verified ·
1 Parent(s): 9892834

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +3 -0
main.py CHANGED
@@ -30,6 +30,7 @@ with open(os.path.join(hermes_dir, ".env"), "w") as f:
30
  f.write(f"TELEGRAM_ALLOWED_USERS={TG_USER_STR}\n")
31
 
32
  # --- Write config.yaml (NVIDIA Primary) ---
 
33
  with open(os.path.join(hermes_dir, "config.yaml"), "w") as f:
34
  f.write("""model:
35
  provider: nvidia
@@ -77,6 +78,8 @@ print("✅ Config and Skills created successfully.")
77
  print("[2] Launching Hermes Telegram Gateway in Foreground...")
78
  hermes_bin = shutil.which("hermes") or "/usr/local/bin/hermes"
79
 
 
 
80
  sys.stdout.flush()
81
  subprocess.run(
82
  [hermes_bin, "gateway", "run"],
 
30
  f.write(f"TELEGRAM_ALLOWED_USERS={TG_USER_STR}\n")
31
 
32
  # --- Write config.yaml (NVIDIA Primary) ---
33
+ # Added basic custom proxy configuration structure if hermes reads it
34
  with open(os.path.join(hermes_dir, "config.yaml"), "w") as f:
35
  f.write("""model:
36
  provider: nvidia
 
78
  print("[2] Launching Hermes Telegram Gateway in Foreground...")
79
  hermes_bin = shutil.which("hermes") or "/usr/local/bin/hermes"
80
 
81
+ # Kuch frameworks automatic system proxies setup detect karte hain.
82
+ # Agar 1-2 retries me connect ho jata hai to standard loop sahi chalega.
83
  sys.stdout.flush()
84
  subprocess.run(
85
  [hermes_bin, "gateway", "run"],