Spaces:
Sleeping
Sleeping
koenverhagen
commited on
Commit
•
971ea86
1
Parent(s):
afd885c
Update server.py
Browse files
server.py
CHANGED
@@ -74,12 +74,12 @@ async def resolution(request: Request, background_tasks: BackgroundTasks, respon
|
|
74 |
|
75 |
if check_token:
|
76 |
card_is_running = True
|
77 |
-
background_tasks.add_task(check_gpu_usage)
|
78 |
|
79 |
image = io.BytesIO(await data.read())
|
80 |
image.seek(0)
|
81 |
|
82 |
-
background_tasks.add_task(check_gpu_usage)
|
83 |
result = cardtagger(image.read())
|
84 |
card_is_running = False
|
85 |
background_tasks.add_task(delete_old_files)
|
|
|
74 |
|
75 |
if check_token:
|
76 |
card_is_running = True
|
77 |
+
# background_tasks.add_task(check_gpu_usage)
|
78 |
|
79 |
image = io.BytesIO(await data.read())
|
80 |
image.seek(0)
|
81 |
|
82 |
+
# background_tasks.add_task(check_gpu_usage)
|
83 |
result = cardtagger(image.read())
|
84 |
card_is_running = False
|
85 |
background_tasks.add_task(delete_old_files)
|