Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -6,13 +6,6 @@ import time
|
|
6 |
import os
|
7 |
import spaces
|
8 |
|
9 |
-
MB = 1024*1024
|
10 |
-
def memory():
|
11 |
-
mem = []
|
12 |
-
while True:
|
13 |
-
mem += ['c' * (100 * MB)]
|
14 |
-
time.sleep(0.1)
|
15 |
-
|
16 |
@spaces.GPU
|
17 |
def greet(name):
|
18 |
return "Hello there {}".format(name)
|
|
|
6 |
import os
|
7 |
import spaces
|
8 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9 |
@spaces.GPU
|
10 |
def greet(name):
|
11 |
return "Hello there {}".format(name)
|