webtools-cli 1.3.5__tar.gz → 1.3.6__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (23) hide show
  1. {webtools_cli-1.3.5 → webtools_cli-1.3.6}/ComfyUI/ui.py +17 -0
  2. {webtools_cli-1.3.5/webtools_cli.egg-info → webtools_cli-1.3.6}/PKG-INFO +1 -1
  3. {webtools_cli-1.3.5 → webtools_cli-1.3.6}/pyproject.toml +1 -1
  4. {webtools_cli-1.3.5 → webtools_cli-1.3.6}/webtools/core.py +21 -3
  5. {webtools_cli-1.3.5 → webtools_cli-1.3.6/webtools_cli.egg-info}/PKG-INFO +1 -1
  6. {webtools_cli-1.3.5 → webtools_cli-1.3.6}/ComfyUI/comfyUI.py +0 -0
  7. {webtools_cli-1.3.5 → webtools_cli-1.3.6}/ComfyUI/comfyu.py +0 -0
  8. {webtools_cli-1.3.5 → webtools_cli-1.3.6}/LICENSE +0 -0
  9. {webtools_cli-1.3.5 → webtools_cli-1.3.6}/README.md +0 -0
  10. {webtools_cli-1.3.5 → webtools_cli-1.3.6}/setup.cfg +0 -0
  11. {webtools_cli-1.3.5 → webtools_cli-1.3.6}/webtools/__init__.py +0 -0
  12. {webtools_cli-1.3.5 → webtools_cli-1.3.6}/webtools/__main__.py +0 -0
  13. {webtools_cli-1.3.5 → webtools_cli-1.3.6}/webtools/cli.py +0 -0
  14. {webtools_cli-1.3.5 → webtools_cli-1.3.6}/webtools/install.py +0 -0
  15. {webtools_cli-1.3.5 → webtools_cli-1.3.6}/webtools/mega_client.py +0 -0
  16. {webtools_cli-1.3.5 → webtools_cli-1.3.6}/webtools/web/index.html +0 -0
  17. {webtools_cli-1.3.5 → webtools_cli-1.3.6}/webtools/web/script.js +0 -0
  18. {webtools_cli-1.3.5 → webtools_cli-1.3.6}/webtools/web/style.css +0 -0
  19. {webtools_cli-1.3.5 → webtools_cli-1.3.6}/webtools_cli.egg-info/SOURCES.txt +0 -0
  20. {webtools_cli-1.3.5 → webtools_cli-1.3.6}/webtools_cli.egg-info/dependency_links.txt +0 -0
  21. {webtools_cli-1.3.5 → webtools_cli-1.3.6}/webtools_cli.egg-info/entry_points.txt +0 -0
  22. {webtools_cli-1.3.5 → webtools_cli-1.3.6}/webtools_cli.egg-info/requires.txt +0 -0
  23. {webtools_cli-1.3.5 → webtools_cli-1.3.6}/webtools_cli.egg-info/top_level.txt +0 -0
@@ -14,6 +14,12 @@ MEMORY_PROFILE = "Standard (Auto-Detect)" #@param ["Standard (Auto-Detect)", "Lo
14
14
  #@markdown **Visual Settings:**
15
15
  LIVE_GENERATION_PREVIEWS = True #@param {type:"boolean"}
16
16
 
17
+ # --- Session Configuration ---
18
+ #@markdown **Performance Profile:**
19
+ MEMORY_PROFILE = "Standard (Auto-Detect)" #@param ["Standard (Auto-Detect)", "Low VRAM (T4 GPU / Heavy Models)", "High VRAM (A100 GPU Only)"]
20
+ #@markdown **Visual Settings:**
21
+ LIVE_GENERATION_PREVIEWS = True #@param {type:"boolean"}
22
+
17
23
  # Dynamic Workspace detection
18
24
  WORKSPACE = os.environ.get("COMFYUI_WORKSPACE")
19
25
  if not WORKSPACE:
@@ -29,6 +35,17 @@ if not WORKSPACE:
29
35
 
30
36
  ARGS = []
31
37
 
38
+ # GPU Detection & Fallback
39
+ try:
40
+ import torch
41
+ if not torch.cuda.is_available():
42
+ print("[WARNING] NVIDIA GPU not detected by Torch. Switching to CPU mode...")
43
+ ARGS.append("--cpu")
44
+ except ImportError:
45
+ # If torch is not even installed yet (unlikely on Colab), we'll assume CPU for now
46
+ # or let the main.py handle its own errors. But adding --cpu is safer.
47
+ ARGS.append("--cpu")
48
+
32
49
  if "Low VRAM" in MEMORY_PROFILE:
33
50
  ARGS.append("--lowvram")
34
51
  elif "High VRAM" in MEMORY_PROFILE:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: webtools-cli
3
- Version: 1.3.5
3
+ Version: 1.3.6
4
4
  Summary: Advanced Web Intelligence & Scraping Toolkit with CLI and Web UI
5
5
  Author: Abhinav Adarsh
6
6
  License-Expression: MIT
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "webtools-cli"
7
- version = "1.3.5"
7
+ version = "1.3.6"
8
8
  description = "Advanced Web Intelligence & Scraping Toolkit with CLI and Web UI"
9
9
  readme = "README.md"
10
10
  license = "MIT"
@@ -3556,9 +3556,27 @@ def run_comfyui_mode():
3556
3556
  continue
3557
3557
 
3558
3558
  if on_colab:
3559
- print(f"\n{Fore.YELLOW}⚠️ Google Colab Detected!{Style.RESET_ALL}")
3560
- print(f"{Fore.CYAN}👉 IMPORTANT: Switch to T4 GPU (Edit -> Notebook settings -> T4 GPU).{Style.RESET_ALL}")
3561
- time.sleep(2)
3559
+ while True:
3560
+ has_gpu = check_gpu()
3561
+ if not has_gpu:
3562
+ os.system('cls' if os.name == 'nt' else 'clear')
3563
+ print(f"\n{Fore.RED}⚠️ GPU NOT DETECTED ON COLAB!{Style.RESET_ALL}")
3564
+ print(f"\n{Fore.CYAN}👉 PLEASE FIX THIS NOW:{Style.RESET_ALL}")
3565
+ print(f" 1. Go to {Fore.YELLOW}Runtime -> Change runtime type{Fore.CYAN}")
3566
+ print(f" 2. Select {Fore.YELLOW}T4 GPU{Fore.CYAN}")
3567
+ print(f" 3. Click {Fore.YELLOW}Save{Fore.CYAN}")
3568
+ print(f"\n{Fore.WHITE}After switching, press Enter to retry or type 'cpu' to force slow CPU mode.{Style.RESET_ALL}")
3569
+
3570
+ user_resp = input(f"\n{Fore.LIGHTGREEN_EX}> {Style.RESET_ALL}").strip().lower()
3571
+ if user_resp == 'cpu':
3572
+ print(f"\n{Fore.YELLOW}⚠️ Forcing CPU mode... this will be extremely slow!{Style.RESET_ALL}")
3573
+ time.sleep(2)
3574
+ break
3575
+ continue
3576
+ else:
3577
+ print(f"\n{Fore.GREEN}✅ T4 GPU Detected! Proceeding...{Style.RESET_ALL}")
3578
+ time.sleep(1.5)
3579
+ break
3562
3580
 
3563
3581
  print(f"\n{Fore.GREEN}🚀 Starting ComfyUI Setup & Session...{Style.RESET_ALL}")
3564
3582
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: webtools-cli
3
- Version: 1.3.5
3
+ Version: 1.3.6
4
4
  Summary: Advanced Web Intelligence & Scraping Toolkit with CLI and Web UI
5
5
  Author: Abhinav Adarsh
6
6
  License-Expression: MIT
File without changes
File without changes
File without changes