Spaces:
Running
on
Zero
Running
on
Zero
macadeliccc
commited on
Commit
•
40457c5
1
Parent(s):
03cbe66
aiohttp tests
Browse files
app.py
CHANGED
@@ -9,7 +9,7 @@ import json
|
|
9 |
import asyncio
|
10 |
|
11 |
# Function to start the ochat server
|
12 |
-
@spaces.GPU
|
13 |
async def start_ochat_server():
|
14 |
print(f"Is CUDA available: {torch.cuda.is_available()}")
|
15 |
print(f"CUDA device: {torch.cuda.get_device_name(torch.cuda.current_device())}")
|
|
|
9 |
import asyncio
|
10 |
|
11 |
# Function to start the ochat server
|
12 |
+
@asyncio.spaces.GPU
|
13 |
async def start_ochat_server():
|
14 |
print(f"Is CUDA available: {torch.cuda.is_available()}")
|
15 |
print(f"CUDA device: {torch.cuda.get_device_name(torch.cuda.current_device())}")
|