File Store Bot commited on
Commit
1662765
·
1 Parent(s): ce2e472

Add dummy spaces.GPU decorator to resolve ZeroGPU boot check

Browse files
Files changed (1) hide show
  1. app.py +10 -0
app.py CHANGED
@@ -10,6 +10,16 @@ from config import *
10
  from pyrogram import compose
11
  from pyrogram.errors import FloodWait
12
 
 
 
 
 
 
 
 
 
 
 
13
  # Import the keep_alive_loop
14
  try:
15
  from plugins.anti_sleep import keep_alive_loop
 
10
  from pyrogram import compose
11
  from pyrogram.errors import FloodWait
12
 
13
+ try:
14
+ import spaces
15
+ except ImportError:
16
+ spaces = None
17
+
18
+ if spaces is not None:
19
+ @spaces.GPU
20
+ def dummy_gpu_loader():
21
+ return "ZeroGPU loaded"
22
+
23
  # Import the keep_alive_loop
24
  try:
25
  from plugins.anti_sleep import keep_alive_loop