Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -2,6 +2,7 @@ import spaces
|
|
2 |
import datetime
|
3 |
import os
|
4 |
import subprocess
|
|
|
5 |
import gradio as gr
|
6 |
|
7 |
CUSTOM_CSS = """
|
@@ -10,6 +11,8 @@ CUSTOM_CSS = """
|
|
10 |
}
|
11 |
"""
|
12 |
|
|
|
|
|
13 |
@spaces.GPU
|
14 |
def run_gpu() -> str:
|
15 |
output: str = ""
|
|
|
2 |
import datetime
|
3 |
import os
|
4 |
import subprocess
|
5 |
+
import torch
|
6 |
import gradio as gr
|
7 |
|
8 |
CUSTOM_CSS = """
|
|
|
11 |
}
|
12 |
"""
|
13 |
|
14 |
+
zero = torch.Tensor([0]).cuda()
|
15 |
+
|
16 |
@spaces.GPU
|
17 |
def run_gpu() -> str:
|
18 |
output: str = ""
|