Yaron Koresh commited on
Commit
9424685
·
verified ·
1 Parent(s): b3bfe09

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -159,12 +159,12 @@ def generate_random_string(length):
159
  characters = str(string.ascii_letters + string.digits)
160
  return ''.join(random.choice(characters) for _ in range(length))
161
 
162
- @gpu(void())
163
  def calc():
164
 
165
- global last_motion
166
- global ip_loaded
167
- global out
168
 
169
  x = grid(1)
170
 
 
159
  characters = str(string.ascii_letters + string.digits)
160
  return ''.join(random.choice(characters) for _ in range(length))
161
 
162
+ @gpu(void(),device=True,inline=True)
163
  def calc():
164
 
165
+ nonlocal last_motion
166
+ nonlocal ip_loaded
167
+ nonlocal out
168
 
169
  x = grid(1)
170