Spaces:
Sleeping
Sleeping
asigalov61
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -7,7 +7,7 @@ from pytz import timezone
|
|
7 |
|
8 |
import torch
|
9 |
|
10 |
-
import spaces
|
11 |
import gradio as gr
|
12 |
|
13 |
from x_transformer_1_23_2 import *
|
@@ -20,11 +20,11 @@ import TMIDIX
|
|
20 |
|
21 |
import matplotlib.pyplot as plt
|
22 |
|
23 |
-
in_space = os.getenv("SYSTEM") == "spaces"
|
24 |
|
25 |
# =================================================================================================
|
26 |
|
27 |
-
@spaces.GPU
|
28 |
def classify_GPU(input_data):
|
29 |
|
30 |
print('Loading model...')
|
|
|
7 |
|
8 |
import torch
|
9 |
|
10 |
+
# import spaces
|
11 |
import gradio as gr
|
12 |
|
13 |
from x_transformer_1_23_2 import *
|
|
|
20 |
|
21 |
import matplotlib.pyplot as plt
|
22 |
|
23 |
+
# in_space = os.getenv("SYSTEM") == "spaces"
|
24 |
|
25 |
# =================================================================================================
|
26 |
|
27 |
+
# @spaces.GPU
|
28 |
def classify_GPU(input_data):
|
29 |
|
30 |
print('Loading model...')
|